diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-05-07 13:36:29 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-05-12 11:47:22 +0200 |
commit | b9f426b1d70b1818aab9d54630b8d858a7e5a4dd (patch) | |
tree | cd81745b68ef48c6f7acacf6173754900b0f3793 /apps/files/ajax/rename.php | |
parent | 324c423548a708720a6f4247bb10be2f1314bd37 (diff) | |
download | nextcloud-server-b9f426b1d70b1818aab9d54630b8d858a7e5a4dd.tar.gz nextcloud-server-b9f426b1d70b1818aab9d54630b8d858a7e5a4dd.zip |
[files] remove normalizePath on rename and dependency injection
Diffstat (limited to 'apps/files/ajax/rename.php')
-rw-r--r-- | apps/files/ajax/rename.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/ajax/rename.php b/apps/files/ajax/rename.php index cb7a178852d..f01932a73c3 100644 --- a/apps/files/ajax/rename.php +++ b/apps/files/ajax/rename.php @@ -26,7 +26,10 @@ require_once realpath( dirname(__FILE__).'/../lib/files.php' ); OCP\JSON::checkLoggedIn(); OCP\JSON::callCheck(); -$files = new \OCA\Files\Files(); +$files = new \OCA\Files\Files( + \OC\Files\Filesystem::getView(), + \OC_L10n::get('files') +); $result = $files->rename( $_GET["dir"], $_GET["file"], |