Просмотр исходного кода

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

tokul 20 лет назад
Родитель
Сommit
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
+        );
 }
 
 /**