diff options
Diffstat (limited to 'views/default/pageshell.php')
-rw-r--r-- | views/default/pageshell.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/views/default/pageshell.php b/views/default/pageshell.php index e8631d83d..648fa1ff6 100644 --- a/views/default/pageshell.php +++ b/views/default/pageshell.php @@ -11,19 +11,27 @@ * @copyright Curverider Ltd 2008
* @link http://elgg.org/
*
+ * @uses $vars['config'] The site configuration settings, imported
* @uses $vars['title'] The page title
* @uses $vars['body'] The main content of the page
* @uses $vars['messages'] A 2d array of various message registers, passed from system_messages()
*/
+ // Set title
+ if (empty($vars['title'])) {
+ $title = $vars['config']->sitename;
+ } else {
+ $title = $vars['config']->sitename . ": " . $vars['title'];
+ }
+
?>
<html>
<head>
- <title><?php echo $vars['title']; ?></title>
+ <title><?php echo $title; ?></title>
</head>
<body>
- <h1><?php echo $vars['title']; ?></h1>
+ <h1><?php echo $title; ?></h1>
<?php
echo elgg_view('messages/list', array('object' => $vars['messages']));
|