aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-15 22:50:15 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-15 22:50:15 +0000
commite76ebabb5bb5a6b5224c03baad5bdc510c288dfe (patch)
tree05f8f542f6d4bb06167666d1de6627c8ef10b419 /install
parentd45a50258f2f33bf153f67d0495a3b7e0062a683 (diff)
downloadelgg-e76ebabb5bb5a6b5224c03baad5bdc510c288dfe.tar.gz
elgg-e76ebabb5bb5a6b5224c03baad5bdc510c288dfe.tar.bz2
fixed issue introduced with the session changes in the installer
git-svn-id: http://code.elgg.org/elgg/trunk@9093 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'install')
-rw-r--r--install/ElggInstaller.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php
index 68c88f620..584b5cb79 100644
--- a/install/ElggInstaller.php
+++ b/install/ElggInstaller.php
@@ -743,8 +743,9 @@ class ElggInstaller {
session_name('Elgg');
session_start();
elgg_unregister_event_handler('boot', 'system', 'session_init');
- } else if ($stepIndex == ($settingsIndex + 1)) {
+ } else if (!$this->isAction && $stepIndex == ($settingsIndex + 1)) {
// now using Elgg session handling so need to pass forward the system messages
+ // this is called on the GET of the next step
session_name('Elgg');
session_start();
$messages = $_SESSION['msg'];
@@ -790,7 +791,7 @@ class ElggInstaller {
elgg_trigger_event('init', 'system');
// @hack finish the process of pushing system messages into new session
- if ($stepIndex == ($settingsIndex + 1)) {
+ if (!$this->isAction && $stepIndex == ($settingsIndex + 1)) {
$_SESSION['msg'] = $messages;
}
}