correctly mark app management active
This commit is contained in:
parent
cec17fd3e2
commit
009e25788f
2 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,7 @@
|
|||
<?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
|
||||
<li id="apps-management">
|
||||
<a href="<?php print_unescaped(OC_Helper::linkToRoute('settings_apps').'?installed'); ?>" title=""
|
||||
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
|
||||
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
|
||||
<img class="icon svg" src="<?php print_unescaped(OC_Helper::imagePath('settings', 'apps.svg')); ?>"/>
|
||||
<span>
|
||||
<?php p($l->t('Apps')); ?>
|
||||
|
|
|
@ -46,6 +46,7 @@ class OC_TemplateLayout extends OC_Template {
|
|||
$user_displayname = OC_User::getDisplayName();
|
||||
$this->assign( 'user_displayname', $user_displayname );
|
||||
$this->assign( 'user_uid', OC_User::getUser() );
|
||||
$this->assign( 'appsmanagement_active', strpos(OC_Request::requestUri(), OC_Helper::linkToRoute('settings_apps')) === 0 );
|
||||
$this->assign('enableAvatars', \OC_Config::getValue('enable_avatars', true));
|
||||
} else if ($renderas == 'guest' || $renderas == 'error') {
|
||||
parent::__construct('core', 'layout.guest');
|
||||
|
|
Loading…
Reference in a new issue