summaryrefslogtreecommitdiffstats
path: root/core/avatar
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-09-04 22:22:56 +0200
committerkondou <kondou@ts.unde.re>2013-09-04 22:22:56 +0200
commit8fd76e39cf52fc9caaf7d2eac365dd03ed6b0cd0 (patch)
tree28a3c97cca0152d869ca6f6c67e83c39f077839b /core/avatar
parentb643c02bd5b6bdf7e1dbbc549ce2a089a009fbc8 (diff)
downloadnextcloud-server-8fd76e39cf52fc9caaf7d2eac365dd03ed6b0cd0.tar.gz
nextcloud-server-8fd76e39cf52fc9caaf7d2eac365dd03ed6b0cd0.zip
Use proper controller naming
Diffstat (limited to 'core/avatar')
-rw-r--r--core/avatar/controller.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/avatar/controller.php b/core/avatar/controller.php
index d0edde50647..43ee811f191 100644
--- a/core/avatar/controller.php
+++ b/core/avatar/controller.php
@@ -6,7 +6,9 @@
* See the COPYING-README file.
*/
-class OC_Core_Avatar_Controller {
+namespace OC\Core\Avatar;
+
+class Controller {
public static function getAvatar($args) {
if (!\OC_User::isLoggedIn()) {
$l = new \OC_L10n('core');
@@ -91,7 +93,7 @@ class OC_Core_Avatar_Controller {
}
public static function deleteAvatar($args) {
- $user = OC_User::getUser();
+ $user = \OC_User::getUser();
try {
$avatar = new \OC_Avatar();
@@ -118,7 +120,7 @@ class OC_Core_Avatar_Controller {
}
public static function postCroppedAvatar($args) {
- $user = OC_User::getUser();
+ $user = \OC_User::getUser();
if (isset($_POST['crop'])) {
$crop = $_POST['crop'];
} else {