diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-30 12:15:39 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-30 12:15:39 +0000 |
commit | fc11bcffa66e2baaae52261a84de13802bb1f072 (patch) | |
tree | 4eb0a28e6d836ca17d8486ff68d753202b11d402 /engine/lib/configuration.php | |
parent | 96713356dc066fc039b445dcf92d874a47d871f0 (diff) | |
download | elgg-fc11bcffa66e2baaae52261a84de13802bb1f072.tar.gz elgg-fc11bcffa66e2baaae52261a84de13802bb1f072.tar.bz2 |
Closes #388: Additionally the site check in configuration_init() should be instanceof. Nice spot, thanks.
git-svn-id: https://code.elgg.org/elgg/trunk@2151 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/configuration.php')
-rw-r--r-- | engine/lib/configuration.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index bdba96b2b..a034f7efc 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -177,7 +177,7 @@ $dataroot = datalist_get('dataroot');
if (!empty($dataroot))
$CONFIG->dataroot = $dataroot;
- if (isset($CONFIG->site) && (get_class($CONFIG->site) == "ElggSite")) {
+ if (isset($CONFIG->site) && ($CONFIG->site instanceof ElggSite)) {
$CONFIG->wwwroot = $CONFIG->site->url;
$CONFIG->sitename = $CONFIG->site->name; $CONFIG->sitedescription = $CONFIG->site->description;
|