diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-02 14:53:39 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-02 14:53:39 +0000 |
commit | 123260460a3b0c2f21a0fd1ba3713845081e5909 (patch) | |
tree | 0285dac3d5d7d362d20dc589582f7524a89d003f /engine/lib/configuration.php | |
parent | 71d647e7684279a360fcf7c477fdc2f02623f70a (diff) | |
download | elgg-123260460a3b0c2f21a0fd1ba3713845081e5909.tar.gz elgg-123260460a3b0c2f21a0fd1ba3713845081e5909.tar.bz2 |
A small validation check
git-svn-id: https://code.elgg.org/elgg/trunk@629 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/configuration.php')
-rw-r--r-- | engine/lib/configuration.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index 28e91978b..b2bc83505 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -118,9 +118,11 @@ $CONFIG->path = datalist_get('path');
$CONFIG->dataroot = datalist_get('dataroot');
- $CONFIG->wwwroot = $CONFIG->site->url;
+ if (isset($CONFIG->site)) {
+ $CONFIG->wwwroot = $CONFIG->site->url;
+ $CONFIG->sitename = $CONFIG->site->name;
+ }
$CONFIG->url = $CONFIG->wwwroot;
- $CONFIG->sitename = $CONFIG->site->name;
return true;
|