summaryrefslogtreecommitdiffstats
path: root/core/avatar
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-27 12:50:21 +0200
committerkondou <kondou@ts.unde.re>2013-08-27 12:50:21 +0200
commit1b456831680b8868108afb7ebddce7095943f61c (patch)
tree20cbba1e532f2d44da179a082fc5ca2fd7d2bb27 /core/avatar
parente6473e6d49178f1c95036f56ef0a65589c0e5adb (diff)
downloadnextcloud-server-1b456831680b8868108afb7ebddce7095943f61c.tar.gz
nextcloud-server-1b456831680b8868108afb7ebddce7095943f61c.zip
Translate "Permission denied" & use class-autoloader
Diffstat (limited to 'core/avatar')
-rw-r--r--core/avatar/controller.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/avatar/controller.php b/core/avatar/controller.php
index cd51810e0e0..17fe4270ff7 100644
--- a/core/avatar/controller.php
+++ b/core/avatar/controller.php
@@ -6,11 +6,12 @@
* See the COPYING-README file.
*/
-class CoreAvatarController {
+class OC_Core_Avatar_Controller {
public static function getAvatar($args) {
if (!\OC_User::isLoggedIn()) {
+ $l = new \OC_L10n('core');
header("HTTP/1.0 403 Forbidden");
- \OC_Template::printErrorPage("Permission denied");
+ \OC_Template::printErrorPage($l->t("Permission denied"));
return;
}