]> source.dussan.org Git - nextcloud-server.git/commitdiff
create new version if the same file is uploaded again over the web interface, approve...
authorBjörn Schießle <schiessle@owncloud.com>
Fri, 15 Mar 2013 09:47:19 +0000 (10:47 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Fri, 15 Mar 2013 09:47:19 +0000 (10:47 +0100)
apps/files_versions/lib/versions.php

index 8874fec6bd2f214534aca16da4e5dcef50904061..f99e26a0915dffb555aacfe5de62099512f857ab 100644 (file)
@@ -165,7 +165,7 @@ 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($newpath)) {
-                       return self::store($newpath);
+                       return self::store($new_path);
                }
                
                $abs_newpath = $versions_view->getLocalFile($newpath);