graf25 23 年之前
父节点
当前提交
e4a4289e77
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      plugins/squirrelspell/modules/check_me.mod
  2. 4 4
      plugins/squirrelspell/setup.php

+ 1 - 1
plugins/squirrelspell/modules/check_me.mod

@@ -29,7 +29,7 @@
  */
 function SpellLink($jscode, $title, $link) {
   echo "<td><a href=\"javascript:$jscode\" "
-    . "title=\"$title\">$ln</a>"
+    . "title=\"$title\">$link</a>"
     . '</td>';
 }
 

+ 4 - 4
plugins/squirrelspell/setup.php

@@ -73,14 +73,14 @@ function squirrelspell_setup() {
      * use document.write() so the "Check Spelling" button is not
      * displayed if js is off in the browser.
      */
-    echo '<script type="text/javascript">\n'
-      . '<!--\n'
+    echo "<script type=\"text/javascript\">\n"
+      . "<!--\n"
       . 'document.write("<input type=\"button\" value=\"'
       . _("Check Spelling") 
       . '\" onclick=\"window.open(\'../plugins/squirrelspell/sqspell_'
       . 'interface.php\', \'sqspell\', \'status=yes,width=550,height=370,'
-      . 'resizable=yes\')\">");\n'
-      . '//-->\n'
+      . 'resizable=yes\')\">");' . "\n"
+      . "//-->\n"
       . "</script>\n";
   }
 }