diff options
Diffstat (limited to 'engine/lib')
-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;
|