Shout: make sure we preserve the context across page loads
authorBen Klang <ben@alkaloid.net>
Sat, 30 Jan 2010 02:39:32 +0000 (21:39 -0500)
committerBen Klang <ben@alkaloid.net>
Sat, 30 Jan 2010 02:39:32 +0000 (21:39 -0500)
shout/lib/Application.php

index eb4b0cd..81dabd6 100644 (file)
@@ -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');