From aa7aabbda67b55a402540c4c0528ff9b205ca2c4 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 4 Aug 2009 13:12:28 -0600 Subject: [PATCH] Add 'load_base' option to pushApp() --- framework/Core/lib/Horde/Registry.php | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.11.0