浏览代码

Use checkForJavascript() instead of $javascript_on. Not well tested. PLEASE HELP TEST.

pdontthink 18 年之前
父节点
当前提交
290f9e0511
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/message_details/message_details_top.php

+ 1 - 1
plugins/message_details/message_details_top.php

@@ -40,7 +40,7 @@ echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"
      addHidden('passed_id', $passed_id).
      addHidden('passed_id', $passed_id).
      addHidden('ent_id', '0').
      addHidden('ent_id', '0').
      addHidden('absolute_dl', 'true').
      addHidden('absolute_dl', 'true').
-     ($javascript_on ?
+     (checkForJavascript() ?
      '<input type="button" value="' . _("Print") . '" onclick="printPopup()" />&nbsp;&nbsp;'.
      '<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")).
      addSubmit(_("Save Message")).