From: Michael M Slusarz Date: Mon, 27 Jul 2009 17:08:10 +0000 (-0600) Subject: Chicken/egg problem when it comes to accessing IMP_Auth before pushApp() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0948a5aa428006b481f9d19e08adc7189ccac9fe;p=horde.git Chicken/egg problem when it comes to accessing IMP_Auth before pushApp() --- 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'; }