aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-15 13:02:56 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-15 13:02:56 +0000
commitd5b835cbf12253bdbb3ce2c89f97e921e06ad1f2 (patch)
treec75107a0762779fb4a33a10a86721df67ba5c044
parent23a34583a812bbbe5df0bcdc4a40ba32bc4ce409 (diff)
downloadelgg-d5b835cbf12253bdbb3ce2c89f97e921e06ad1f2.tar.gz
elgg-d5b835cbf12253bdbb3ce2c89f97e921e06ad1f2.tar.bz2
Various configuration things
git-svn-id: https://code.elgg.org/elgg/trunk@40 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/configuration.php3
-rw-r--r--views/default/pageshell.php6
2 files changed, 6 insertions, 3 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php
index 697bd247d..66b36bf63 100644
--- a/engine/lib/configuration.php
+++ b/engine/lib/configuration.php
@@ -39,6 +39,9 @@
$CONFIG->wwwroot .= str_replace($_SERVER['DOCUMENT_ROOT'],"",$CONFIG->path);
}
+ if (empty($CONFIG->sitename))
+ $CONFIG->sitename = "New Elgg site";
+
}
?> \ No newline at end of file
diff --git a/views/default/pageshell.php b/views/default/pageshell.php
index 499f1486e..f242335f8 100644
--- a/views/default/pageshell.php
+++ b/views/default/pageshell.php
@@ -19,11 +19,11 @@
// Set title
if (empty($vars['title'])) {
- $title = $vars['config']->sitename;
- } else if (empty($vars['config']->sitename)) {
+ $title = $vars['sitename'];
+ } else if (empty($vars['sitename'])) {
$title = $vars['title'];
} else {
- $title = $vars['config']->sitename . ": " . $vars['title'];
+ $title = $vars['sitename'] . ": " . $vars['title'];
}
?>