summaryrefslogtreecommitdiffstats
path: root/core/avatar
diff options
context:
space:
mode:
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;
}