From: Michael M Slusarz Date: Tue, 4 Aug 2009 19:12:28 +0000 (-0600) Subject: Add 'load_base' option to pushApp() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=aa7aabbda67b55a402540c4c0528ff9b205ca2c4;p=horde.git Add 'load_base' option to pushApp() --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index b389c4dbf..37c384529 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -821,6 +821,8 @@ class Horde_Registry * ONLY be disabled by system scripts (cron jobs, etc.) * and scripts that handle login. * DEFAULT: true + * 'load_base' - (boolean) Load the application's base.php file? + * DEFAULT: false * 'logintasks' - (boolean) Perform login tasks? Only performed if * 'check_perms' is also true. System tasks are always * peformed if the user is authorized. @@ -915,6 +917,11 @@ class Horde_Registry $tasks->runTasks(array('runtasks' => !empty($options['logintasks']))); } + /* Include base.php file. */ + if (!empty($options['load_base'])) { + require_once $app_lib . '/base.php'; + } + return true; }