fixing setting page titles
This commit is contained in:
parent
cda9685c0e
commit
62286f00a1
|
@ -94,17 +94,26 @@ class OC_TemplateLayout extends OC_Template {
|
|||
}
|
||||
|
||||
// Add navigation entry
|
||||
$this->assign( 'application', '', false );
|
||||
|
||||
$this->assign( 'application', '');
|
||||
$this->assign( 'appid', $appId );
|
||||
$navigation = OC_App::getNavigation();
|
||||
$this->assign( 'navigation', $navigation);
|
||||
$this->assign( 'settingsnavigation', OC_App::getSettingsNavigation());
|
||||
$settingsNavigation = OC_App::getSettingsNavigation();
|
||||
$this->assign( 'settingsnavigation', $settingsNavigation);
|
||||
foreach($navigation as $entry) {
|
||||
if ($entry['active']) {
|
||||
$this->assign( 'application', $entry['name'] );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
foreach($settingsNavigation as $entry) {
|
||||
if ($entry['active']) {
|
||||
$this->assign( 'application', $entry['name'] );
|
||||
break;
|
||||
}
|
||||
}
|
||||
$userDisplayName = OC_User::getDisplayName();
|
||||
$this->assign('user_displayname', $userDisplayName);
|
||||
$this->assign('user_uid', OC_User::getUser());
|
||||
|
|
Loading…
Reference in New Issue