diff options
author | kondou <kondou@ts.unde.re> | 2013-09-09 16:57:46 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-09-09 16:57:46 +0200 |
commit | 1832eb88726dce70d4f8a0a45bd574b0b688ab26 (patch) | |
tree | ce7c5b7a0e8a3e61f8bb93312cb7fedb6a4a58a7 /settings/templates | |
parent | d18a070a0393ac3846053bcef1833dd01856e117 (diff) | |
download | nextcloud-server-1832eb88726dce70d4f8a0a45bd574b0b688ab26.tar.gz nextcloud-server-1832eb88726dce70d4f8a0a45bd574b0b688ab26.zip |
Pass view in \OC_Avatar to constructor and use $_ for enable_avatars
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/personal.php | 2 | ||||
-rw-r--r-- | settings/templates/users.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 9215115503a..d2ca8154f16 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -80,7 +80,7 @@ if($_['passwordChangeSupported']) { } ?> -<?php if (\OC_Config::getValue('enable_avatars', true) === true): ?> +<?php if ($_['enableAvatars']): ?> <form id="avatar" method="post" action="<?php p(\OC_Helper::linkToRoute('core_avatar_post')); ?>"> <fieldset class="personalblock"> <legend><strong><?php p($l->t('Profile picture')); ?></strong></legend> diff --git a/settings/templates/users.php b/settings/templates/users.php index 445e5ce2fd5..747d052a7bd 100644 --- a/settings/templates/users.php +++ b/settings/templates/users.php @@ -81,7 +81,7 @@ $_['subadmingroups'] = array_flip($items); <table class="hascontrols" data-groups="<?php p(json_encode($allGroups));?>"> <thead> <tr> - <?php if (\OC_Config::getValue('enable_avatars', true) === true): ?> + <?php if ($_['enableAvatars']): ?> <th id='headerAvatar'></th> <?php endif; ?> <th id='headerName'><?php p($l->t('Username'))?></th> @@ -99,7 +99,7 @@ $_['subadmingroups'] = array_flip($items); <?php foreach($_["users"] as $user): ?> <tr data-uid="<?php p($user["name"]) ?>" data-displayName="<?php p($user["displayName"]) ?>"> - <?php if (\OC_Config::getValue('enable_avatars', true) === true): ?> + <?php if ($_['enableAvatars']): ?> <td class="avatar"><div class="avatardiv"></div></td> <?php endif; ?> <td class="name"><?php p($user["name"]); ?></td> |