diff options
author | kondou <kondou@ts.unde.re> | 2013-09-11 07:11:33 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-09-11 07:11:33 +0200 |
commit | bf7f94422fc86558f71e11117caee0758266a163 (patch) | |
tree | e1fb857118a8e58c082ec680798a2fce5a2f9c30 /lib | |
parent | 1832eb88726dce70d4f8a0a45bd574b0b688ab26 (diff) | |
download | nextcloud-server-bf7f94422fc86558f71e11117caee0758266a163.tar.gz nextcloud-server-bf7f94422fc86558f71e11117caee0758266a163.zip |
Bring another enable_avatars to $_ and fix $thus->$this
Diffstat (limited to 'lib')
-rw-r--r-- | lib/avatar.php | 2 | ||||
-rw-r--r-- | lib/templatelayout.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/avatar.php b/lib/avatar.php index c07ef537d50..f20980c364b 100644 --- a/lib/avatar.php +++ b/lib/avatar.php @@ -28,7 +28,7 @@ class OC_Avatar { * @return boolean|\OC_Image containing the avatar or false if there's no image */ public function get ($size = 64) { - if ($thus->view->file_exists('avatar.jpg')) { + if ($this->view->file_exists('avatar.jpg')) { $ext = 'jpg'; } elseif ($this->view->file_exists('avatar.png')) { $ext = 'png'; diff --git a/lib/templatelayout.php b/lib/templatelayout.php index 0b868a39e49..625f3424a04 100644 --- a/lib/templatelayout.php +++ b/lib/templatelayout.php @@ -46,6 +46,7 @@ class OC_TemplateLayout extends OC_Template { $user_displayname = OC_User::getDisplayName(); $this->assign( 'user_displayname', $user_displayname ); $this->assign( 'user_uid', OC_User::getUser() ); + $this->assign('enableAvatars', \OC_Config::getValue('enable_avatars', true)); } else if ($renderas == 'guest' || $renderas == 'error') { parent::__construct('core', 'layout.guest'); } else { |