aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-12 21:56:01 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-12 21:56:01 +0100
commita25bda8e414077cc10fd82aef0a653195b13da05 (patch)
treed3080712d2a65a90b55d80a67faa86cd345118db
parent5c816c0cc93094b1ad6ca841e89dc5fe579b70b6 (diff)
downloadnextcloud-server-a25bda8e414077cc10fd82aef0a653195b13da05.tar.gz
nextcloud-server-a25bda8e414077cc10fd82aef0a653195b13da05.zip
Add application name to title
-rw-r--r--core/templates/layout.user.php2
-rw-r--r--lib/template.php9
2 files changed, 9 insertions, 2 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index f793275f2ca..64353d4d4f4 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>ownCloud</title>
+ <title><?php echo isset($_['application']) && !empty($_['application'])?$_['application'].' | ':'' ?>ownCloud</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<?php echo image_path('', 'favicon.png'); ?>" /><link rel="apple-touch-icon-precomposed" href="<?php echo image_path('', 'favicon-touch.png'); ?>" />
<?php foreach($_['cssfiles'] as $cssfile): ?>
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" );
}