diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-21 08:25:09 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-21 08:25:09 +0000 |
commit | 5a6a5104b625e45da803b282e6508054337b0a99 (patch) | |
tree | 3f556ab74e48b0c5518cfad90052b3044c6f1f4d /engine/start.php | |
parent | 7640e6859c39b7d0b3d298e91709e9ca064e2027 (diff) | |
download | elgg-5a6a5104b625e45da803b282e6508054337b0a99.tar.gz elgg-5a6a5104b625e45da803b282e6508054337b0a99.tar.bz2 |
Plugin init only called on sanitised installs where installation is complete.
git-svn-id: https://code.elgg.org/elgg/trunk@1040 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/start.php')
-rw-r--r-- | engine/start.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engine/start.php b/engine/start.php index ed452d78f..3d59b1894 100644 --- a/engine/start.php +++ b/engine/start.php @@ -75,7 +75,7 @@ * to load any more files
*/
- if (sanitised()) { // Begin portion for sanitised installs only
+ if ($sanitised = sanitised()) { // Begin portion for sanitised installs only
/**
* Load the system settings
@@ -143,19 +143,22 @@ // Load plugins + $installed = is_installed(); + $db_installed = is_db_installed(); + // Determine light mode $lm = strtolower(get_input('lightmode')); if ($lm == 'true') $lightmode = true; // Load plugins, if we're not in light mode - if (!$lightmode) { + if (($installed) && ($db_installed) && ($sanitised) && (!$lightmode)) { load_plugins(); trigger_elgg_event('plugins_boot', 'system'); } // Forward if we haven't been installed
- if ((!is_installed() || !is_db_installed()) && !substr_count($_SERVER["PHP_SELF"],"install.php") && !substr_count($_SERVER["PHP_SELF"],"css.php") && !substr_count($_SERVER["PHP_SELF"],"action_handler.php")) {
+ if ((!$installed || !$db_installed) && !substr_count($_SERVER["PHP_SELF"],"install.php") && !substr_count($_SERVER["PHP_SELF"],"css.php") && !substr_count($_SERVER["PHP_SELF"],"action_handler.php")) {
header("Location: install.php");
exit;
} |