summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-14 17:09:48 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-14 17:09:48 +0100
commitf78594c0aeeb29bfc4365f48dbb967b645fd5c61 (patch)
treee046762430ed196e8ddb2590a9fcfd812ddeed1d /apps/files_versions
parent93b2ada6f6b54dc9b3c341c379e524f51a75b8f4 (diff)
downloadnextcloud-server-f78594c0aeeb29bfc4365f48dbb967b645fd5c61.tar.gz
nextcloud-server-f78594c0aeeb29bfc4365f48dbb967b645fd5c61.zip
fix var name
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/lib/versions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 6d47b3038c6..f99e26a0915 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.php
@@ -164,8 +164,8 @@ class Storage {
// 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);