dialog.js is now needed for some other stuff also
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 12 Jan 2009 20:26:15 +0000 (13:26 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 12 Jan 2009 20:26:15 +0000 (13:26 -0700)
imp/index-dimp.php

index ad57107..944c919 100644 (file)
@@ -21,17 +21,10 @@ $scripts = array(
     array('mailbox-dimp.js', 'imp', false),
     array('DimpSlider.js', 'imp', true),
     array('unblockImages.js', 'imp', true),
-    array('popup.js', 'imp', true)
+    array('popup.js', 'imp', true),
+    array('dialog.js', 'imp', true)
 );
 
-/* Load necessary files for PGP or S/MIME passphrase input. */
-if ((!empty($GLOBALS['conf']['utils']['gnupg']) &&
-     $GLOBALS['prefs']->getValue('use_pgp')) ||
-    ($GLOBALS['prefs']->getValue('use_smime') &&
-     Util::extensionExists('openssl'))) {
-    $scripts[] = array('dialog.js', 'imp', true);
-}
-
 /* Get site specific menu items. */
 $js_code = $site_menu = array();
 if (is_readable(IMP_BASE . '/config/menu.php')) {