move call to print_unescaped() to template

This commit is contained in:
Thomas Müller 2013-10-07 11:49:43 +02:00
parent aa34438d06
commit 131d82e41e
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@
</li>
<?php endforeach; ?>
<li>
<a id="logout" <?php print OC_User::getLogoutAttribute(); ?>>
<a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
<img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>" />
<?php p($l->t('Log out'));?>
</a>

View File

@ -327,7 +327,7 @@ class OC_User {
}
}
return print_unescaped("href=".link_to('', 'index.php'))."?logout=true";
return "href=" . link_to('', 'index.php') . "?logout=true";
}
/**