From f78594c0aeeb29bfc4365f48dbb967b645fd5c61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Thu, 14 Mar 2013 17:09:48 +0100
Subject: [PATCH] fix var name

---
 apps/files_versions/lib/versions.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 6d47b3038c..f99e26a091 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);
-- 
GitLab