diff options
Diffstat (limited to 'apps/files_versions')
-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 { |