Add 'load_base' option to pushApp()
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 Aug 2009 19:12:28 +0000 (13:12 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 Aug 2009 19:12:28 +0000 (13:12 -0600)
framework/Core/lib/Horde/Registry.php

index b389c4d..37c3845 100644 (file)
@@ -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;
     }