From 6c681fbf8e68e3404f0c1c074f995953417f6b41 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Fri, 29 Jan 2010 21:39:32 -0500 Subject: [PATCH] Shout: make sure we preserve the context across page loads --- shout/lib/Application.php | 4 ++++ 1 file changed, 4 insertions(+) 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'); -- 2.11.0