Merge pull request #1717 from owncloud/fix-warning-template
Fix strict standard warning in user template
This commit is contained in:
commit
425d41aaf9
|
@ -31,7 +31,7 @@
|
|||
|
||||
<ul id="settings" class="svg">
|
||||
<span id="expand">
|
||||
<?php echo OCP\User::getDisplayName($user=null)?OC_Util::sanitizeHTML(OCP\User::getDisplayName($user=null)):(OC_User::getUser()?OC_User::getUser():'') ?>
|
||||
<?php echo $_['displayname'] ?>
|
||||
<img class="svg" src="<?php echo image_path('', 'actions/caret.svg'); ?>" />
|
||||
</span>
|
||||
<div id="expanddiv">
|
||||
|
|
|
@ -415,6 +415,8 @@ class OC_Template{
|
|||
$page = new OC_TemplateLayout($this->renderas);
|
||||
if($this->renderas == 'user') {
|
||||
$page->assign('requesttoken', $this->vars['requesttoken']);
|
||||
$user = OC_User::getUser();
|
||||
$page->assign('displayname', OCP\User::getDisplayName($user));
|
||||
}
|
||||
|
||||
// Add custom headers
|
||||
|
|
Loading…
Reference in New Issue