aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/configuration.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-05 11:26:52 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-05 11:26:52 +0000
commit000335ccb23511fa28fb5000d13bcf6c9e6215a4 (patch)
tree3124aed982b7583f96d54e8401a1a47e05a07872 /engine/lib/configuration.php
parent7bcb5bf8eddb3c43b92426624bc3e783c760cc48 (diff)
downloadelgg-000335ccb23511fa28fb5000d13bcf6c9e6215a4.tar.gz
elgg-000335ccb23511fa28fb5000d13bcf6c9e6215a4.tar.bz2
Fixes #655, Refs #628: Install now working with correct event chain (#628).
git-svn-id: https://code.elgg.org/elgg/trunk@2530 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/configuration.php')
-rw-r--r--engine/lib/configuration.php40
1 files changed, 20 insertions, 20 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php
index fd242b01a..65afe12b6 100644
--- a/engine/lib/configuration.php
+++ b/engine/lib/configuration.php
@@ -169,27 +169,27 @@
global $CONFIG;
- if (!is_installed() || !is_db_installed()) return false;
-
- $path = datalist_get('path');
- if (!empty($path))
- $CONFIG->path = $path;
- $dataroot = datalist_get('dataroot');
- if (!empty($dataroot))
- $CONFIG->dataroot = $dataroot;
- if (isset($CONFIG->site) && ($CONFIG->site instanceof ElggSite)) {
- $CONFIG->wwwroot = $CONFIG->site->url;
- $CONFIG->sitename = $CONFIG->site->name;
- $CONFIG->sitedescription = $CONFIG->site->description;
- $CONFIG->siteemail = $CONFIG->site->email;
+ if (is_installed() || is_db_installed()) {
+
+ $path = datalist_get('path');
+ if (!empty($path))
+ $CONFIG->path = $path;
+ $dataroot = datalist_get('dataroot');
+ if (!empty($dataroot))
+ $CONFIG->dataroot = $dataroot;
+ if (isset($CONFIG->site) && ($CONFIG->site instanceof ElggSite)) {
+ $CONFIG->wwwroot = $CONFIG->site->url;
+ $CONFIG->sitename = $CONFIG->site->name;
+ $CONFIG->sitedescription = $CONFIG->site->description;
+ $CONFIG->siteemail = $CONFIG->site->email;
+ }
+ $CONFIG->url = $CONFIG->wwwroot;
+
+ // Load default settings from database
+ get_all_config();
+
+ return true;
}
- $CONFIG->url = $CONFIG->wwwroot;
-
- // Load default settings from database
- get_all_config();
-
- return true;
-
}
/**