From: Michael M Slusarz Date: Tue, 7 Sep 2010 22:54:09 +0000 (-0600) Subject: This calls the injector, not the registry. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1ea47caf1554681689bda9d1ffffba422664a8bf;p=horde.git This calls the injector, not the registry. --- 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.") . '';