瀏覽代碼

drop two unneeded globals

Thijs Kinkhorst 18 年之前
父節點
當前提交
4ae0889ab8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plugins/squirrelspell/sqspell_functions.php

+ 2 - 2
plugins/squirrelspell/sqspell_functions.php

@@ -119,7 +119,7 @@ function squirrelspell_upgrade_function() {
  * @return            void
  */
 function sqspell_makePage($title, $scriptsrc, $body){
-  global $color, $SQSPELL_VERSION;
+  global $color;
 
   if (! sqgetGlobalVar('MOD', $MOD, SQ_GET) ) {
       $MOD = 'options_main';
@@ -186,7 +186,7 @@ function sqspell_makePage($title, $scriptsrc, $body){
  * @return            void
  */
 function sqspell_makeWindow($onload, $title, $scriptsrc, $body){
-  global $color, $SQSPELL_VERSION;
+  global $color;
 
   displayHtmlHeader($title,
       ($scriptsrc ? "\n<script type=\"text/javascript\" src=\"js/$scriptsrc\"></script>\n" : ''));