Use checkForJavascript() instead of $javascript_on. Not well tested. PLEASE HELP...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 3 Jan 2007 09:38:31 +0000 (09:38 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 3 Jan 2007 09:38:31 +0000 (09:38 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12051 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/message_details/message_details_top.php

index 466b4442a0aa13ede0c58160c147ea7b3464b306..a8095ef2d6ba70ba95a408b9df851aa9cab23142 100644 (file)
@@ -40,7 +40,7 @@ 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 ?
+     (checkForJavascript() ?
      '<input type="button" value="' . _("Print") . '" onclick="printPopup()" />&nbsp;&nbsp;'.
      '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" />&nbsp;&nbsp;' :'').
      addSubmit(_("Save Message")).