aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/install.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-02 12:40:38 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-02 12:40:38 +0000
commit4cf87cd1f558593fe7047440806bc6b7d32e83ee (patch)
treeeff1ceef115a0977cfc8988f6ca88ae3afd455e7 /engine/lib/install.php
parentdb727a00f06d95da0b6d3a3356b1d60c01feabe3 (diff)
downloadelgg-4cf87cd1f558593fe7047440806bc6b7d32e83ee.tar.gz
elgg-4cf87cd1f558593fe7047440806bc6b7d32e83ee.tar.bz2
The system now uses the site GUID to get and set entity data. Also, installation is a great deal more visual.
git-svn-id: https://code.elgg.org/elgg/trunk@621 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/install.php')
-rw-r--r--engine/lib/install.php33
1 files changed, 1 insertions, 32 deletions
diff --git a/engine/lib/install.php b/engine/lib/install.php
index 4892be509..2a9026959 100644
--- a/engine/lib/install.php
+++ b/engine/lib/install.php
@@ -41,38 +41,7 @@
return false;
}
-
- /**
- * Function that gets run once, when the system is first installed
- *
- */
- function install_prerequisites() {
-
- // Load existing config
- global $CONFIG;
-
- // Create a new Elgg site
- $site = new ElggSite();
- $site->name = "Elgg site";
- $site->save();
-
- // Set datalist alerting us to the fact that the default site is this one
- datalist_set('default_site',$site->getGUID());
-
- }
-
- /**
- * Functions to be run at install init-time.
- *
- */
- function install_init() {
-
- // Run the install_prerequisites function just once
- run_function_once("install_prerequisites");
-
- }
- // Make sure install_boot gets called on system book
- register_event_handler('init','system','install_init',1);
+ register_action("systemsettings/install",true);
?> \ No newline at end of file