Fix function location
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 13 Apr 2010 06:13:19 +0000 (00:13 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 13 Apr 2010 06:13:19 +0000 (00:13 -0600)
imp/lib/Crypt/Pgp.php
imp/lib/Crypt/Smime.php

index f526660..d6c115c 100644 (file)
@@ -177,7 +177,7 @@ class IMP_Crypt_Pgp extends Horde_Crypt_Pgp
         }
 
         /* Try retrieving by e-mail only first. */
-        $params = Horde_Core_Prefs_Utils::getAddressbookSearchParams();
+        $params = IMP::getAddressbookSearchParams();
         try {
             $result = $GLOBALS['registry']->call('contacts/getField', array($address, self::PUBKEY_FIELD, $params['sources'], false, true));
         } catch (Horde_Exception $e) {
index 76e1445..5b2b0fb 100644 (file)
@@ -207,7 +207,7 @@ class IMP_Crypt_Smime extends Horde_Crypt_Smime
      */
     public function deletePublicKey($email)
     {
-        $params = Horde_Core_Prefs_Utils::getAddressbookSearchParams();
+        $params = IMP::getAddressbookSearchParams();
         $GLOBALS['registry']->call('contacts/deleteField', array($email, self::PUBKEY_FIELD, $params['sources']));
     }