Skip to content
Snippets Groups Projects
Commit e6473e6d authored by Christopher Schäpers's avatar Christopher Schäpers
Browse files

Clean up some cruft

parent 31736a1d
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@
src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="<?php p($theme->getName()); ?>" /></a>
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
<?php if (isset($_['avatar'])) { print_unescaped($_['avatar']); } ?>
<?php print_unescaped($_['avatar']); ?>
<ul id="settings" class="svg">
<span id="expand" tabindex="0" role="link">
......
......@@ -18,10 +18,7 @@ class OC_TemplateLayout extends OC_Template {
$this->assign('bodyid', 'body-user');
}
// display avatars if they are enabled
if (OC_Config::getValue('avatar') === 'gravatar' || OC_Config::getValue('avatar', 'local') === 'local') {
$this->assign('avatar', '<img class="avatar" src="'.\OC_Helper::linkToRoute('core_avatar_get').'/'.OC_User::getUser().'/32">');
}
$this->assign('avatar', '<img class="avatar" src="'.\OC_Helper::linkToRoute('core_avatar_get').'/'.OC_User::getUser().'/32">');
// Update notification
if(OC_Config::getValue('updatechecker', true) === true) {
......
......@@ -74,9 +74,6 @@ if($_['passwordChangeSupported']) {
<input type="text" name="email" id="email" value="<?php p($_['email']); ?>"
placeholder="<?php p($l->t('Your email address'));?>" /><span class="msg"></span><br />
<em><?php p($l->t('Fill in an email address to enable password recovery'));?></em>
<?php if($_['avatar'] === "gravatar") {
print_unescaped($l->t('<br><em>Your Email will be used for your gravatar<em>'));
} ?>
</fieldset>
</form>
<?php
......
......@@ -58,7 +58,6 @@ foreach($accessibleusers as $uid => $displayName) {
$users[] = array(
"name" => $uid,
"avatar" => \OC_Avatar::get($uid, 32),
"displayName" => $displayName,
"groups" => OC_Group::getUserGroups($uid),
'quota' => $quota,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment