summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-22 13:19:29 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-22 13:19:29 +0100
commit3dac15a8911fea1e8473af7e7a26d7a57e68328b (patch)
treeeaf7dca00a5b171f2d2336c93a53bd486e2c19d3 /apps/files_versions
parentf843b7edfe7b3bc6e45d4610778d2df98b3985e3 (diff)
downloadnextcloud-server-3dac15a8911fea1e8473af7e7a26d7a57e68328b.tar.gz
nextcloud-server-3dac15a8911fea1e8473af7e7a26d7a57e68328b.zip
Move calls to \OCP\JSON to private \OC_JSON
They should be properly fixed at some point. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/ajax/getVersions.php10
-rw-r--r--apps/files_versions/ajax/rollbackVersion.php10
-rw-r--r--apps/files_versions/download.php4
3 files changed, 12 insertions, 12 deletions
diff --git a/apps/files_versions/ajax/getVersions.php b/apps/files_versions/ajax/getVersions.php
index c3cb47da889..6bba0a540c6 100644
--- a/apps/files_versions/ajax/getVersions.php
+++ b/apps/files_versions/ajax/getVersions.php
@@ -24,9 +24,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-OCP\JSON::checkLoggedIn();
-OCP\JSON::callCheck();
-OCP\JSON::checkAppEnabled('files_versions');
+\OC_JSON::checkLoggedIn();
+\OC_JSON::callCheck();
+\OC_JSON::checkAppEnabled('files_versions');
$source = (string)$_GET['source'];
$start = (int)$_GET['start'];
@@ -47,10 +47,10 @@ if( $versions ) {
unset($version['path']);
}
- \OCP\JSON::success(array('data' => array('versions' => $versions, 'endReached' => $endReached)));
+ \\OC_JSON::success(array('data' => array('versions' => $versions, 'endReached' => $endReached)));
} else {
- \OCP\JSON::success(array('data' => array('versions' => [], 'endReached' => true)));
+ \\OC_JSON::success(array('data' => array('versions' => [], 'endReached' => true)));
}
diff --git a/apps/files_versions/ajax/rollbackVersion.php b/apps/files_versions/ajax/rollbackVersion.php
index 6d5933e07fd..c1a5c094ede 100644
--- a/apps/files_versions/ajax/rollbackVersion.php
+++ b/apps/files_versions/ajax/rollbackVersion.php
@@ -26,16 +26,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-OCP\JSON::checkLoggedIn();
-OCP\JSON::checkAppEnabled('files_versions');
-OCP\JSON::callCheck();
+\OC_JSON::checkLoggedIn();
+\OC_JSON::checkAppEnabled('files_versions');
+\OC_JSON::callCheck();
$file = (string)$_GET['file'];
$revision=(int)$_GET['revision'];
if(OCA\Files_Versions\Storage::rollback( $file, $revision )) {
- OCP\JSON::success(array("data" => array( "revision" => $revision, "file" => $file )));
+ \OC_JSON::success(array("data" => array( "revision" => $revision, "file" => $file )));
}else{
$l = \OC::$server->getL10N('files_versions');
- OCP\JSON::error(array("data" => array( "message" => $l->t("Could not revert: %s", array($file) ))));
+ \OC_JSON::error(array("data" => array( "message" => $l->t("Could not revert: %s", array($file) ))));
}
diff --git a/apps/files_versions/download.php b/apps/files_versions/download.php
index c61e0461028..77f3e9f0887 100644
--- a/apps/files_versions/download.php
+++ b/apps/files_versions/download.php
@@ -25,8 +25,8 @@
*
*/
-OCP\JSON::checkAppEnabled('files_versions');
-OCP\JSON::checkLoggedIn();
+\OC_JSON::checkAppEnabled('files_versions');
+\OC_JSON::checkLoggedIn();
$file = $_GET['file'];
$revision=(int)$_GET['revision'];