From: Jan Schneider Date: Fri, 12 Mar 2010 16:23:34 +0000 (+0100) Subject: require, not require_once. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=15aad9576ef8bef37340903ba393dfb5549efe75;p=horde.git require, not require_once. --- diff --git a/chora/lib/Application.php b/chora/lib/Application.php index c5147bc51..d2e5eed88 100644 --- a/chora/lib/Application.php +++ b/chora/lib/Application.php @@ -185,12 +185,11 @@ class Chora_Application extends Horde_Registry_Application return $this->_permsCache; } - require_once dirname(__FILE__) . '/../config/sourceroots.php'; - $perms['tree']['chora']['sourceroots'] = false; $perms['title']['chora:sourceroots'] = _("Repositories"); // Run through every source repository + require dirname(__FILE__) . '/../config/sourceroots.php'; foreach ($sourceroots as $sourceroot => $srconfig) { $perms['tree']['chora']['sourceroots'][$sourceroot] = false; $perms['title']['chora:sourceroots:' . $sourceroot] = $srconfig['name'];