diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-02-12 21:56:01 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-02-12 21:56:01 +0100 |
commit | a25bda8e414077cc10fd82aef0a653195b13da05 (patch) | |
tree | d3080712d2a65a90b55d80a67faa86cd345118db /lib/template.php | |
parent | 5c816c0cc93094b1ad6ca841e89dc5fe579b70b6 (diff) | |
download | nextcloud-server-a25bda8e414077cc10fd82aef0a653195b13da05.tar.gz nextcloud-server-a25bda8e414077cc10fd82aef0a653195b13da05.zip |
Add application name to title
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/template.php b/lib/template.php index 84302fd1385..d991759fbcd 100644 --- a/lib/template.php +++ b/lib/template.php @@ -314,8 +314,15 @@ class OC_Template{ } // Add navigation entry - $page->assign( "navigation", OC_App::getNavigation()); + $navigation = OC_App::getNavigation(); + $page->assign( "navigation", $navigation); $page->assign( "settingsnavigation", OC_App::getSettingsNavigation()); + foreach($navigation as $entry) { + if ($entry['active']) { + $page->assign( 'application', $entry['name'] ); + break; + } + } }else{ $page = new OC_Template( "core", "layout.guest" ); } |