This is what IMP::initialize() is for
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 29 Jul 2009 23:32:22 +0000 (17:32 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 30 Jul 2009 00:44:51 +0000 (18:44 -0600)
imp/lib/api.php

index c8a979c..be91a97 100644 (file)
@@ -694,13 +694,7 @@ function _imp_authTransparent()
      * here or else things will fail in IMP_Auth. */
     $GLOBALS['imp_authentication'] = 'none';
     require_once dirname(__FILE__) . '/base.php';
-    if (!isset($GLOBALS['imp_imap'])) {
-        $GLOBALS['imp_imap'] = new IMP_Imap();
-    }
-    if (!isset($GLOBALS['imp_search'])) {
-        $GLOBALS['imp_search'] = new IMP_Search();
-    }
-
+    IMP::initialize();
     return IMP_Auth::transparent();
 }