瀏覽代碼

if 'js' => TRUE, javascript support is checked by src/options.php

tokul 20 年之前
父節點
當前提交
dbaae8d312
共有 1 個文件被更改,包括 7 次插入9 次删除
  1. 7 9
      plugins/newmail/functions.php

+ 7 - 9
plugins/newmail/functions.php

@@ -44,15 +44,13 @@ function newmail_optpage_register_block_function() {
     // Gets added to the user's OPTIONS page.
     global $optpage_blocks;
 
-    if ( checkForJavascript() ) {
-        /* Register Squirrelspell with the $optionpages array. */
-        $optpage_blocks[] = array(
-            'name' => _("NewMail Options"),
-            'url'  => sqm_baseuri() . 'plugins/newmail/newmail_opt.php',
-            'desc' => _("This configures settings for playing sounds and/or showing popup windows when new mail arrives."),
-            'js'   => TRUE
-            );
-    }
+    /* Register Squirrelspell with the $optionpages array. */
+    $optpage_blocks[] = array(
+        'name' => _("NewMail Options"),
+        'url'  => sqm_baseuri() . 'plugins/newmail/newmail_opt.php',
+        'desc' => _("This configures settings for playing sounds and/or showing popup windows when new mail arrives."),
+        'js'   => TRUE
+        );
 }
 
 /**