From: Ben Klang Date: Sat, 30 Jan 2010 02:39:32 +0000 (-0500) Subject: Shout: make sure we preserve the context across page loads X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6c681fbf8e68e3404f0c1c074f995953417f6b41;p=horde.git Shout: make sure we preserve the context across page loads --- diff --git a/shout/lib/Application.php b/shout/lib/Application.php index eb4b0cdb1..81dabd6ff 100644 --- a/shout/lib/Application.php +++ b/shout/lib/Application.php @@ -81,6 +81,10 @@ class Shout_Application extends Horde_Registry_Application } $context = Horde_Util::getFormData('context'); + if (empty($context) && !empty($_SESSION['shout']['context'])) { + $context = $_SESSION['shout']['context']; + } + if (!empty($context) && !in_array($context, $contexts)) { // Requested context not available $GLOBALS['notification']->push(_("You do not have permission to access that context."), 'horde.error');