Fix scope (Bug #8890).
authorJan Schneider <jan@horde.org>
Mon, 1 Mar 2010 10:48:00 +0000 (11:48 +0100)
committerJan Schneider <jan@horde.org>
Mon, 1 Mar 2010 10:48:20 +0000 (11:48 +0100)
wicked/lib/Application.php

index 672af21..171806c 100644 (file)
@@ -83,10 +83,10 @@ class Wicked_Application extends Horde_Registry_Application
             $perms['title']['wicked:pages:' . $val] = $val;
         }
 
-        $pages = $wicked->getPages();
+        $pages = $GLOBALS['wicked']->getPages();
         if (!($pages instanceof PEAR_Error)) {
             foreach ($pages as $pagename) {
-                $pageId = $wicked->getPageId($pagename);
+                $pageId = $GLOBALS['wicked']->getPageId($pagename);
                 $perms['tree']['wicked']['pages'][$pageId] = false;
                 $perms['title']['wicked:pages:' . $pageId] = $pagename;
             }