Shout: Remove reference to lib/base.php
authorBen Klang <ben@alkaloid.net>
Fri, 8 Jan 2010 15:13:31 +0000 (10:13 -0500)
committerBen Klang <ben@alkaloid.net>
Fri, 8 Jan 2010 15:14:09 +0000 (10:14 -0500)
shout/lib/Application.php

index a7353e9..cd241d2 100644 (file)
@@ -97,12 +97,14 @@ class Shout_Application extends Horde_Registry_Application
         if (!empty($perms)) {
             return $perms;
         }
-        
-        require_once dirname(__FILE__) . '/base.php';
 
         $perms['tree']['shout']['superadmin'] = false;
         $perms['title']['shout:superadmin'] = _("Super Administrator");
 
+        if (empty($this->contexts)) {
+            $this->__construct(array('init' => true));
+        }
+
         $contexts = $this->contexts->getContexts();
 
         $perms['tree']['shout']['contexts'] = false;