From: Gunnar Wrobel
Date: Wed, 3 Mar 2010 00:43:53 +0000 (+0100) Subject: Temporary workaround to avoid the hard redirect exit during testing. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b70b84343d05538bad914a0738ae25e63ab31806;p=horde.git Temporary workaround to avoid the hard redirect exit during testing. Will be immediately removed once the Backend has been extracted. --- diff --git a/framework/LoginTasks/lib/Horde/LoginTasks.php b/framework/LoginTasks/lib/Horde/LoginTasks.php index 18bd4733d..e00bc782a 100644 --- a/framework/LoginTasks/lib/Horde/LoginTasks.php +++ b/framework/LoginTasks/lib/Horde/LoginTasks.php @@ -222,7 +222,7 @@ class Horde_LoginTasks * have been confirmed by the user. * @param string $url The URL to redirect to when finished. */ - public function runTasks($confirmed = false, $url = null) + public function runTasks($confirmed = false, $url = null, $no_redirect = false) { if (!isset($this->_tasklist) || ($this->_tasklist === true)) { @@ -262,9 +262,11 @@ class Horde_LoginTasks if (!$processed && $need_display) { $this->_tasklist->target = $url; + if ($no_redirect) return $this->getLoginTasksUrl(); header('Location: ' . $this->getLoginTasksUrl()); exit; } elseif ($processed && !$need_display) { + if ($no_redirect) return $tasklist_target; header('Location: ' . $tasklist_target); exit; }