aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 21:53:58 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 21:53:58 +0000
commit9795d6a9451c98ae9ea624d4513c3d9c28a78d1a (patch)
treecf45d7b1eb78bdb83a2d317c416d0b9059ead2fb /engine/lib/sites.php
parentc27eac2d2a970e76a1204757bbe15da8efb2870c (diff)
downloadelgg-9795d6a9451c98ae9ea624d4513c3d9c28a78d1a.tar.gz
elgg-9795d6a9451c98ae9ea624d4513c3d9c28a78d1a.tar.bz2
ripped out last remaining tentacles of old installer from core - just needs removal of install.php when elgg_view() is updated
git-svn-id: http://code.elgg.org/elgg/trunk@7141 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php22
1 files changed, 9 insertions, 13 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index d5984a75f..960e54ee3 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -409,27 +409,23 @@ function get_site_domain($guid) {
*
* @return true
*/
-function sites_init($event, $object_type, $object) {
+function sites_boot($event, $object_type, $object) {
global $CONFIG;
- if (is_installed() && is_db_installed()) {
- $site = trigger_plugin_hook("siteid", "system");
- if ($site === null || $site === false) {
- $CONFIG->site_id = (int) datalist_get('default_site');
- } else {
- $CONFIG->site_id = $site;
- }
- $CONFIG->site_guid = $CONFIG->site_id;
- $CONFIG->site = get_entity($CONFIG->site_guid);
-
- return true;
+ $site = trigger_plugin_hook("siteid", "system");
+ if ($site === null || $site === false) {
+ $CONFIG->site_id = (int) datalist_get('default_site');
+ } else {
+ $CONFIG->site_id = $site;
}
+ $CONFIG->site_guid = $CONFIG->site_id;
+ $CONFIG->site = get_entity($CONFIG->site_guid);
return true;
}
// Register event handlers
-register_elgg_event_handler('boot', 'system', 'sites_init', 2);
+register_elgg_event_handler('boot', 'system', 'sites_boot', 2);
// Register with unit test
register_plugin_hook('unit_test', 'system', 'sites_test');