aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/page_elements/header.php2
-rw-r--r--views/default/pageshell.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/views/default/page_elements/header.php b/views/default/page_elements/header.php
index c84647098..ebfab43de 100644
--- a/views/default/page_elements/header.php
+++ b/views/default/page_elements/header.php
@@ -42,7 +42,7 @@
<div id="container">
<div id="header">
<!-- display the page title -->
- <h1><a href="<?php echo $vars['url']; ?>"><?php echo $vars['sitename']; ?></a></h1>
+ <h1><a href="<?php echo $vars['url']; ?>"><?php echo $vars['config']->sitename; ?></a></h1>
<h2><?php echo $vars['title']; ?></h2>
<!-- display top level navigation -->
<?php echo elgg_view('navigation/topmenu'); ?>
diff --git a/views/default/pageshell.php b/views/default/pageshell.php
index 002f41e9b..33ca0cbd0 100644
--- a/views/default/pageshell.php
+++ b/views/default/pageshell.php
@@ -20,11 +20,11 @@
// Set title
if (empty($vars['title'])) {
- $title = $vars['sitename'];
- } else if (empty($vars['sitename'])) {
+ $title = $vars['config']->sitename;
+ } else if (empty($vars['config']->sitename)) {
$title = $vars['title'];
} else {
- $title = $vars['sitename'] . ": " . $vars['title'];
+ $title = $vars['config']->sitename . ": " . $vars['title'];
}
?>