From fb00dd72baa7df8b1dfc0d464545169e3f814a7d Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Fri, 8 Jan 2010 10:13:31 -0500 Subject: [PATCH] Shout: Remove reference to lib/base.php --- shout/lib/Application.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shout/lib/Application.php b/shout/lib/Application.php index a7353e90c..cd241d2db 100644 --- a/shout/lib/Application.php +++ b/shout/lib/Application.php @@ -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; -- 2.11.0