Skip to content

Commit

Permalink
fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Schießle committed Mar 14, 2013
1 parent 93b2ada commit f78594c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_versions/lib/versions.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ public static function rename($old_path, $new_path) {

// if the file already exists than it was a upload of a existing file
// over the web interface -> store() is the right function we need here
if ($files_view->file_exists($new_path)) {
return self::store($newpath);
if ($files_view->file_exists($newpath)) {
return self::store($new_path);
}

$abs_newpath = $versions_view->getLocalFile($newpath);
Expand Down

0 comments on commit f78594c

Please sign in to comment.