Browse Source

Use clearer-named CheckForJavaScript in stead of !soupNazi.

Thijs Kinkhorst 21 years ago
parent
commit
b5b9bdcdcb
2 changed files with 5 additions and 6 deletions
  1. 2 3
      plugins/newmail/setup.php
  2. 3 3
      plugins/squirrelspell/setup.php

+ 2 - 3
plugins/newmail/setup.php

@@ -78,9 +78,8 @@
        // Gets added to the user's OPTIONS page.
        global $optpage_blocks;
 
-       if ( !soupNazi() ) {
-
-           /* Register Squirrelspell with the $optionpages array. */
+       if ( checkForJavascript() ) {
+       /* Register Squirrelspell with the $optionpages array. */
            $optpage_blocks[] = array(
                'name' => _("NewMail Options"),
                'url'  => SM_PATH . 'plugins/newmail/newmail_opt.php',

+ 3 - 3
plugins/squirrelspell/setup.php

@@ -39,9 +39,9 @@ function squirrelmail_plugin_init_squirrelspell() {
 function squirrelspell_optpage_register_block() {
   global $optpage_blocks;
   /**
-   * soupNazi checks if this browser is capable of using the plugin.
+   * Check if this browser is capable of using the plugin
    */
-  if (!soupNazi()) {
+  if (checkForJavascript()) {
     /**
      * The browser checks out.
      * Register Squirrelspell with the $optionpages array. 
@@ -66,7 +66,7 @@ function squirrelspell_setup() {
    * Check if this browser is capable of displaying SquirrelSpell
    * correctly.
    */
-  if (!soupNazi()) {
+  if (checkForJavascript()) {
     /**
      * Some people may choose to disable javascript even though their
      * browser is capable of using it. So these freaks don't complain,