summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/ajax/rollbackVersion.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/ajax/rollbackVersion.php')
-rw-r--r--apps/files_versions/ajax/rollbackVersion.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/ajax/rollbackVersion.php b/apps/files_versions/ajax/rollbackVersion.php
index 900d8cd6e28..e6133507738 100644
--- a/apps/files_versions/ajax/rollbackVersion.php
+++ b/apps/files_versions/ajax/rollbackVersion.php
@@ -9,6 +9,6 @@ $revision=(int)$_GET['revision'];
if(OCA\Files_Versions\Storage::rollback( $file, $revision )) {
OCP\JSON::success(array("data" => array( "revision" => $revision, "file" => $file )));
}else{
- $l = OC_L10N::get('files_versions');
+ $l = \OC::$server->getL10N('files_versions');
OCP\JSON::error(array("data" => array( "message" => $l->t("Could not revert: %s", array($file) ))));
}