diff options
author | kondou <kondou@ts.unde.re> | 2013-08-27 12:50:21 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-27 12:50:21 +0200 |
commit | 1b456831680b8868108afb7ebddce7095943f61c (patch) | |
tree | 20cbba1e532f2d44da179a082fc5ca2fd7d2bb27 /core/routes.php | |
parent | e6473e6d49178f1c95036f56ef0a65589c0e5adb (diff) | |
download | nextcloud-server-1b456831680b8868108afb7ebddce7095943f61c.tar.gz nextcloud-server-1b456831680b8868108afb7ebddce7095943f61c.zip |
Translate "Permission denied" & use class-autoloader
Diffstat (limited to 'core/routes.php')
-rw-r--r-- | core/routes.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/routes.php b/core/routes.php index 150dbab9c10..30c4bf544d7 100644 --- a/core/routes.php +++ b/core/routes.php @@ -58,24 +58,23 @@ $this->create('core_lostpassword_reset_password', '/lostpassword/reset/{token}/{ ->action('OC_Core_LostPassword_Controller', 'resetPassword'); // Avatar routes -OC::$CLASSPATH['CoreAvatarController'] = 'core/avatar/controller.php'; $this->create('core_avatar_get', '/avatar/{user}/{size}') ->defaults(array('user' => '', 'size' => 64)) ->get() - ->action('CoreAvatarController', 'getAvatar'); + ->action('OC_Core_Avatar_Controller', 'getAvatar'); $this->create('core_avatar_post', '/avatar/') ->post() - ->action('CoreAvatarController', 'postAvatar'); + ->action('OC_Core_Avatar_Controller', 'postAvatar'); $this->create('core_avatar_delete', '/avatar/') ->delete() - ->action('CoreAvatarController', 'deleteAvatar'); + ->action('OC_Core_Avatar_Controller', 'deleteAvatar'); $this->create('core_avatar_get_tmp', '/avatar/tmp/{size}') ->defaults(array('size' => 64)) ->get() - ->action('CoreAvatarController', 'getTmpAvatar'); + ->action('OC_Core_Avatar_Controller', 'getTmpAvatar'); $this->create('core_avatar_post_cropped', '/avatar/cropped') ->post() - ->action('CoreAvatarController', 'postCroppedAvatar'); + ->action('OC_Core_Avatar_Controller', 'postCroppedAvatar'); // Not specifically routed $this->create('app_css', '/apps/{app}/{file}') |