aboutsummaryrefslogtreecommitdiff
path: root/engine/start.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-21 08:25:09 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-21 08:25:09 +0000
commit5a6a5104b625e45da803b282e6508054337b0a99 (patch)
tree3f556ab74e48b0c5518cfad90052b3044c6f1f4d /engine/start.php
parent7640e6859c39b7d0b3d298e91709e9ca064e2027 (diff)
downloadelgg-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.php9
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;
}