diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 12:23:29 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 12:23:29 +0200 |
commit | 43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5 (patch) | |
tree | f4b191f0d039cb7de942554ea23df3fff9de7ad6 /apps/files_versions/ajax | |
parent | 375ba986452b190745b9388be92737d7e5771673 (diff) | |
download | nextcloud-server-43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5.tar.gz nextcloud-server-43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5.zip |
ported oc_json
Diffstat (limited to 'apps/files_versions/ajax')
-rwxr-xr-x | apps/files_versions/ajax/getVersions.php | 6 | ||||
-rwxr-xr-x | apps/files_versions/ajax/rollbackVersion.php | 2 | ||||
-rwxr-xr-x | apps/files_versions/ajax/togglesettings.php | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_versions/ajax/getVersions.php b/apps/files_versions/ajax/getVersions.php index d12cf368f18..5949c32ed16 100755 --- a/apps/files_versions/ajax/getVersions.php +++ b/apps/files_versions/ajax/getVersions.php @@ -1,7 +1,7 @@ <?php require_once('../../../lib/base.php'); -OC_JSON::checkAppEnabled('files_versions'); +OCP\JSON::checkAppEnabled('files_versions'); require_once('../versions.php'); $userDirectory = "/".OCP\USER::getUser()."/files"; @@ -23,7 +23,7 @@ if( OCA_Versions\Storage::isversioned( $source ) ) { $versionsSorted = array_reverse( $versionsFormatted ); if ( !empty( $versionsSorted ) ) { - OC_JSON::encodedPrint($versionsSorted); + OCP\JSON::encodedPrint($versionsSorted); } }else{ @@ -57,5 +57,5 @@ if( OCA_Versions\Storage::isversioned( $source ) ) { // $source = dirname($source); // } // if (!empty($users)) { -// OC_JSON::encodedPrint($users); +// OCP\JSON::encodedPrint($users); // } diff --git a/apps/files_versions/ajax/rollbackVersion.php b/apps/files_versions/ajax/rollbackVersion.php index a7b18c4e091..3faaafe935d 100755 --- a/apps/files_versions/ajax/rollbackVersion.php +++ b/apps/files_versions/ajax/rollbackVersion.php @@ -1,7 +1,7 @@ <?php require_once('../../../lib/base.php'); -OC_JSON::checkAppEnabled('files_versions'); +OCP\JSON::checkAppEnabled('files_versions'); require_once('../versions.php'); $userDirectory = "/".OCP\USER::getUser()."/files"; diff --git a/apps/files_versions/ajax/togglesettings.php b/apps/files_versions/ajax/togglesettings.php index 49e314f86aa..d513d12dd6c 100755 --- a/apps/files_versions/ajax/togglesettings.php +++ b/apps/files_versions/ajax/togglesettings.php @@ -1,7 +1,7 @@ <?php -OC_JSON::checkAppEnabled('files_versions'); -OC_JSON::checkAdminUser(); +OCP\JSON::checkAppEnabled('files_versions'); +OCP\JSON::checkAdminUser(); if (OCP\Config::getSystemValue('versions', 'true')=='true') { OCP\Config::setSystemValue('versions', 'false'); } else { |