diff options
author | Sam Tuke <samtuke@owncloud.com> | 2013-02-06 18:26:44 +0000 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2013-02-06 18:26:44 +0000 |
commit | faf6cb08686ed618eb08bce4a3035b3831ab10c8 (patch) | |
tree | e382af4f563d3228124d702507750b27504c8836 /apps/files_versions/ajax | |
parent | 954a6274836e8fbf83fbbfb34fc89c250c7da13b (diff) | |
parent | a26f17c1303d0f4e08144d9ca508488f09cbba3b (diff) | |
download | nextcloud-server-faf6cb08686ed618eb08bce4a3035b3831ab10c8.tar.gz nextcloud-server-faf6cb08686ed618eb08bce4a3035b3831ab10c8.zip |
Merge branch 'master' into files_encryption
Diffstat (limited to 'apps/files_versions/ajax')
-rw-r--r-- | apps/files_versions/ajax/getVersions.php | 2 | ||||
-rw-r--r-- | apps/files_versions/ajax/rollbackVersion.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versions/ajax/getVersions.php b/apps/files_versions/ajax/getVersions.php index 600e69cf798..53fc04625c6 100644 --- a/apps/files_versions/ajax/getVersions.php +++ b/apps/files_versions/ajax/getVersions.php @@ -5,7 +5,7 @@ $userDirectory = "/".OCP\USER::getUser()."/files"; $source = $_GET['source']; $count = 5; //show the newest revisions -if( ($versions = OCA_Versions\Storage::getVersions( $source, $count)) ) { +if( ($versions = OCA\Files_Versions\Storage::getVersions( $source, $count)) ) { $versionsFormatted = array(); diff --git a/apps/files_versions/ajax/rollbackVersion.php b/apps/files_versions/ajax/rollbackVersion.php index f2c211d9c1e..dc5a59cb4af 100644 --- a/apps/files_versions/ajax/rollbackVersion.php +++ b/apps/files_versions/ajax/rollbackVersion.php @@ -8,7 +8,7 @@ $userDirectory = "/".OCP\USER::getUser()."/files"; $file = $_GET['file']; $revision=(int)$_GET['revision']; -if(OCA_Versions\Storage::rollback( $file, $revision )) { +if(OCA\Files_Versions\Storage::rollback( $file, $revision )) { OCP\JSON::success(array("data" => array( "revision" => $revision, "file" => $file ))); }else{ OCP\JSON::error(array("data" => array( "message" => "Could not revert:" . $file ))); |