Clean up some cruft

This commit is contained in:
kondou 2013-08-26 17:41:19 +02:00
parent 31736a1df3
commit e6473e6d49
4 changed files with 2 additions and 9 deletions

View File

@ -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">

View File

@ -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) {

View File

@ -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

View File

@ -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,