diff options
Diffstat (limited to 'apps/files/ajax/move.php')
-rw-r--r-- | apps/files/ajax/move.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/move.php b/apps/files/ajax/move.php index 0a8dbc24a65..3a07554ad00 100644 --- a/apps/files/ajax/move.php +++ b/apps/files/ajax/move.php @@ -2,14 +2,14 @@ OCP\JSON::checkLoggedIn(); OCP\JSON::callCheck(); -\OC::$session->close(); +\OC::$server->getSession()->close(); // Get data $dir = stripslashes($_POST["dir"]); $file = stripslashes($_POST["file"]); $target = stripslashes(rawurldecode($_POST["target"])); -$l = OC_L10N::get('files'); +$l = \OC::$server->getL10N('files'); if(\OC\Files\Filesystem::file_exists($target . '/' . $file)) { OCP\JSON::error(array("data" => array( "message" => $l->t("Could not move %s - File with this name already exists", array($file)) ))); |