From 0948a5aa428006b481f9d19e08adc7189ccac9fe Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 27 Jul 2009 11:08:10 -0600 Subject: [PATCH] Chicken/egg problem when it comes to accessing IMP_Auth before pushApp() --- imp/lib/base.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imp/lib/base.php b/imp/lib/base.php index 8c17c6e33..ef46859e9 100644 --- a/imp/lib/base.php +++ b/imp/lib/base.php @@ -74,6 +74,9 @@ if (($viewmode == 'dimp') && Horde_Util::nonInputVar('imp_dimp_logout')) { // Determine imp authentication type. $authentication = Horde_Util::nonInputVar('imp_authentication'); if ($authentication == 'horde') { + // Autoloading for imp is not set until pushApp(), so need to add lib + // path here explicitly. + Horde_Autoloader::addClassPattern('/^IMP_/i', IMP_BASE . '/lib'); IMP_Auth::$authType = 'horde'; } -- 2.11.0