Merge pull request #1837 from owncloud/fix-user-template
Remove unneeded code for user layout template
This commit is contained in:
commit
6735701c1e
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
<ul id="settings" class="svg">
|
<ul id="settings" class="svg">
|
||||||
<span id="expand">
|
<span id="expand">
|
||||||
<?php echo $_['displayname'] ?>
|
<?php echo $_['user_displayname'] ?>
|
||||||
<img class="svg" src="<?php echo image_path('', 'actions/caret.svg'); ?>" />
|
<img class="svg" src="<?php echo image_path('', 'actions/caret.svg'); ?>" />
|
||||||
</span>
|
</span>
|
||||||
<div id="expanddiv">
|
<div id="expanddiv">
|
||||||
|
|
|
@ -413,11 +413,6 @@ class OC_Template{
|
||||||
|
|
||||||
if( $this->renderas ) {
|
if( $this->renderas ) {
|
||||||
$page = new OC_TemplateLayout($this->renderas);
|
$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
|
// Add custom headers
|
||||||
$page->assign('headers', $this->headers, false);
|
$page->assign('headers', $this->headers, false);
|
||||||
|
|
Loading…
Reference in New Issue