mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #21953 from owncloud/make-enable_avatars-more-robust
Make enable_avatars setting more robust
This commit is contained in:
commit
e23cd35019
4 changed files with 4 additions and 4 deletions
|
|
@ -140,7 +140,7 @@ $array = array(
|
|||
'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true),
|
||||
'version' => implode('.', \OCP\Util::getVersion()),
|
||||
'versionstring' => OC_Util::getVersionString(),
|
||||
'enable_avatars' => \OC::$server->getConfig()->getSystemValue('enable_avatars', true),
|
||||
'enable_avatars' => \OC::$server->getConfig()->getSystemValue('enable_avatars', true) === true,
|
||||
'lost_password_link'=> \OC::$server->getConfig()->getSystemValue('lost_password_link', null),
|
||||
'modRewriteWorking' => (getenv('front_controller_active') === 'true'),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ class TemplateLayout extends \OC_Template {
|
|||
$this->assign('user_displayname', $userDisplayName);
|
||||
$this->assign('user_uid', \OC_User::getUser());
|
||||
$this->assign('appsmanagement_active', $appsMgmtActive);
|
||||
$this->assign('enableAvatars', $this->config->getSystemValue('enable_avatars', true));
|
||||
$this->assign('enableAvatars', $this->config->getSystemValue('enable_avatars', true) === true);
|
||||
|
||||
if (\OC_User::getUser() === false) {
|
||||
$this->assign('userAvatarSet', false);
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ $tmpl->assign('activelanguage', $userLang);
|
|||
$tmpl->assign('passwordChangeSupported', OC_User::canUserChangePassword(OC_User::getUser()));
|
||||
$tmpl->assign('displayNameChangeSupported', OC_User::canUserChangeDisplayName(OC_User::getUser()));
|
||||
$tmpl->assign('displayName', OC_User::getDisplayName());
|
||||
$tmpl->assign('enableAvatars', $config->getSystemValue('enable_avatars', true));
|
||||
$tmpl->assign('enableAvatars', $config->getSystemValue('enable_avatars', true) === true);
|
||||
$tmpl->assign('avatarChangeSupported', OC_User::canUserChangeAvatar(OC_User::getUser()));
|
||||
$tmpl->assign('certs', $certificateManager->listCertificates());
|
||||
$tmpl->assign('showCertificates', $enableCertImport);
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ $tmpl->assign('quota_preset', $quotaPreset);
|
|||
$tmpl->assign('default_quota', $defaultQuota);
|
||||
$tmpl->assign('defaultQuotaIsUserDefined', $defaultQuotaIsUserDefined);
|
||||
$tmpl->assign('recoveryAdminEnabled', $recoveryAdminEnabled);
|
||||
$tmpl->assign('enableAvatars', \OC::$server->getConfig()->getSystemValue('enable_avatars', true));
|
||||
$tmpl->assign('enableAvatars', \OC::$server->getConfig()->getSystemValue('enable_avatars', true) === true);
|
||||
|
||||
$tmpl->assign('show_storage_location', $config->getAppValue('core', 'umgmt_show_storage_location', 'false'));
|
||||
$tmpl->assign('show_last_login', $config->getAppValue('core', 'umgmt_show_last_login', 'false'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue