Chicken/egg problem when it comes to accessing IMP_Auth before pushApp()
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 27 Jul 2009 17:08:10 +0000 (11:08 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 27 Jul 2009 17:29:19 +0000 (11:29 -0600)
imp/lib/base.php

index 8c17c6e..ef46859 100644 (file)
@@ -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';
 }