From 1ea47caf1554681689bda9d1ffffba422664a8bf Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 7 Sep 2010 16:54:09 -0600 Subject: [PATCH] This calls the injector, not the registry. --- imp/lib/Mime/Viewer/Pgp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/lib/Mime/Viewer/Pgp.php b/imp/lib/Mime/Viewer/Pgp.php index 7755e2cf1..3d105dcb2 100644 --- a/imp/lib/Mime/Viewer/Pgp.php +++ b/imp/lib/Mime/Viewer/Pgp.php @@ -205,7 +205,7 @@ class IMP_Mime_Viewer_Pgp extends Horde_Mime_Viewer_Base /* Ask for the correct passphrase if this is encrypted * symmetrically. */ - $imple = $GLOBALS['registry']->getInstance('Horde_Ajax_Imple')->getImple(array('imp', 'PassphraseDialog'), array( + $imple = $GLOBALS['injector']->getInstance('Horde_Ajax_Imple')->getImple(array('imp', 'PassphraseDialog'), array( 'params' => array( 'symmetricid' => $symmetric_id ), @@ -240,7 +240,7 @@ class IMP_Mime_Viewer_Pgp extends Horde_Mime_Viewer_Base if (is_null($personal_pass)) { /* Ask for the private key's passphrase if this is * encrypted asymmetrically. */ - $imple = $GLOBALS['registry']->getInstance('Horde_Ajax_Imple')->getImple(array('imp', 'PassphraseDialog'), array( + $imple = $GLOBALS['injector']->getInstance('Horde_Ajax_Imple')->getImple(array('imp', 'PassphraseDialog'), array( 'type' => 'pgpPersonal' )); $status[] = Horde::link('#', '', '', '', '', '', '', array('id' => $imple->getPassphraseId())) . _("You must enter the passphrase for your PGP private key to view this message.") . ''; -- 2.11.0