]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed issue introduced with the session changes in the installer
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 15 May 2011 22:50:15 +0000 (22:50 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 15 May 2011 22:50:15 +0000 (22:50 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9093 36083f99-b078-4883-b0ff-0f9b5a30f544

install/ElggInstaller.php

index 68c88f620c3f09fd245eb6db840594489f14a0a2..584b5cb79bf73fe7d8b79295ac925b3ad570647b 100644 (file)
@@ -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;
                        }
                }