aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-07 19:02:48 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-07 19:02:48 +0000
commit7b6f4048ca4d0eed589db0d02590642167889d98 (patch)
treeb55e43d66eece8247c2df5c63d2757c9991186ad /engine
parent2cd67b0ba68da1d3c4a8cfe6e6655a7176b079af (diff)
downloadelgg-7b6f4048ca4d0eed589db0d02590642167889d98.tar.gz
elgg-7b6f4048ca4d0eed589db0d02590642167889d98.tar.bz2
Some extra plugins stuff
git-svn-id: https://code.elgg.org/elgg/trunk@110 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/plugins.php2
-rw-r--r--engine/start.php7
2 files changed, 5 insertions, 4 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php
index a5027486d..34be9b7cf 100644
--- a/engine/lib/plugins.php
+++ b/engine/lib/plugins.php
@@ -19,7 +19,7 @@
* @todo Add proper plugin handler that launches plugins in an admin-defined order and activates them on admin request
*/
function load_plugins() {
-
+
global $CONFIG;
if (!empty($CONFIG->pluginspath)) {
diff --git a/engine/start.php b/engine/start.php
index 1ed294a03..68f43bc74 100644
--- a/engine/start.php
+++ b/engine/start.php
@@ -46,15 +46,13 @@
if (!@include_once(dirname(__FILE__) . "/settings.php")) // Global settings
throw new InstallationException("Elgg could not load the settings file.");
-
-
+
/**
* Load and initialise the database
*/
if (!@include_once(dirname(__FILE__) . "/lib/database.php")) // Database connection
throw new InstallationException("Elgg could not load the main Elgg database library.");
-
/**
* Load the remaining libraries from /lib/ in alphabetical order,
@@ -82,6 +80,9 @@
throw new InstallationException("Could not load {$file}");
}
+ // Set default config
+ set_default_config();
+
// Load plugins
load_plugins();