From 6ca2abc1081f6fb52440e8b9dbc271dcfb88a09f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Fri, 15 Mar 2013 10:47:19 +0100 Subject: [PATCH] create new version if the same file is uploaded again over the web interface, approved in #2317 --- apps/files_versions/lib/versions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 8874fec6bd2..f99e26a0915 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -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); -- 2.39.5