(finally)fix message_details plugin for new plugin infrastructure, and as
[squirrelmail.git] / plugins / message_details / message_details_top.php
index 27fd6407f544fd62295805f7b1da207ca1bfe457..466b4442a0aa13ede0c58160c147ea7b3464b306 100644 (file)
@@ -40,10 +40,11 @@ echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"
      addHidden('passed_id', $passed_id).
      addHidden('ent_id', '0').
      addHidden('absolute_dl', 'true').
+     ($javascript_on ?
      '<input type="button" value="' . _("Print") . '" onclick="printPopup()" />&nbsp;&nbsp;'.
-     '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" />&nbsp;&nbsp;'.
+     '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" />&nbsp;&nbsp;' :'').
      addSubmit(_("Save Message")).
      '</form></div>'.
      '</body>'.
      "</html>\n";
-?>
\ No newline at end of file
+?>