summaryrefslogtreecommitdiffstats
path: root/core/avatar
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-05-12 16:23:33 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-05-12 16:23:33 +0200
commit33987eea8302e5b8f7889c934debdc2b9dd0296c (patch)
tree80fc32df1d93940ad4c56b5ec078536cb1ddcf37 /core/avatar
parent4dd1a49a686462bc846e10623e97611ef171a731 (diff)
downloadnextcloud-server-33987eea8302e5b8f7889c934debdc2b9dd0296c.tar.gz
nextcloud-server-33987eea8302e5b8f7889c934debdc2b9dd0296c.zip
remove legacy aka deprecated code: OC_Cache
Diffstat (limited to 'core/avatar')
-rw-r--r--core/avatar/controller.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/avatar/controller.php b/core/avatar/controller.php
index 22693824461..06efbec3f3c 100644
--- a/core/avatar/controller.php
+++ b/core/avatar/controller.php
@@ -71,7 +71,7 @@ class Controller {
$image = new \OC_Image($newAvatar);
if ($image->valid()) {
- \OC_Cache::set('tmpavatar', $image->data(), 7200);
+ \OC\Cache::set('tmpavatar', $image->data(), 7200);
\OC_JSON::error(array("data" => "notsquare"));
} else {
$l = new \OC_L10n('core');
@@ -109,7 +109,7 @@ class Controller {
\OC_JSON::checkLoggedIn();
\OC_JSON::callCheck();
- $tmpavatar = \OC_Cache::get('tmpavatar');
+ $tmpavatar = \OC\Cache::get('tmpavatar');
if (is_null($tmpavatar)) {
$l = new \OC_L10n('core');
\OC_JSON::error(array("data" => array("message" => $l->t("No temporary profile picture available, try again")) ));
@@ -136,7 +136,7 @@ class Controller {
return;
}
- $tmpavatar = \OC_Cache::get('tmpavatar');
+ $tmpavatar = \OC\Cache::get('tmpavatar');
if (is_null($tmpavatar)) {
$l = new \OC_L10n('core');
\OC_JSON::error(array("data" => array("message" => $l->t("No temporary profile picture available, try again")) ));
@@ -149,7 +149,7 @@ class Controller {
$avatar = new \OC_Avatar($user);
$avatar->set($image->data());
// Clean up
- \OC_Cache::remove('tmpavatar');
+ \OC\Cache::remove('tmpavatar');
\OC_JSON::success();
} catch (\Exception $e) {
\OC_JSON::error(array("data" => array("message" => $e->getMessage()) ));