aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_shells/walled_garden.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-29 12:36:38 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-29 12:36:38 +0000
commitf0e7d14c218696142b41e0183dc734ddff162018 (patch)
tree9d085eaef6bf5425796951cc50c3c50bbb666417 /views/default/page_shells/walled_garden.php
parente7fd07af05e1812e08a2e5ea39912e61af17d2d1 (diff)
downloadelgg-f0e7d14c218696142b41e0183dc734ddff162018.tar.gz
elgg-f0e7d14c218696142b41e0183dc734ddff162018.tar.bz2
Refs #2428 added elgg_get_config(), elgg_set_config(), and elgg_save_config()
git-svn-id: http://code.elgg.org/elgg/trunk@7470 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_shells/walled_garden.php')
-rw-r--r--views/default/page_shells/walled_garden.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/views/default/page_shells/walled_garden.php b/views/default/page_shells/walled_garden.php
index 0da1aeb67..cdd3982ec 100644
--- a/views/default/page_shells/walled_garden.php
+++ b/views/default/page_shells/walled_garden.php
@@ -7,12 +7,13 @@
header("Content-type: text/html; charset=UTF-8");
// Set title
+$site_title = elgg_get_config('sitename');
if (empty($vars['title'])) {
- $title = $vars['config']->sitename;
-} elseif (empty($vars['config']->sitename)) {
+ $title = $site_title;
+} else if (empty($site_title)) {
$title = $vars['title'];
} else {
- $title = $vars['config']->sitename . ": " . $vars['title'];
+ $title = $site_title . ": " . $vars['title'];
}
echo elgg_view('page_elements/html_begin', $vars);