Use clearer-named CheckForJavaScript in stead of !soupNazi.
[squirrelmail.git] / plugins / squirrelspell / setup.php
index 5869cca31fe55fa1541c53202e20556c853f135e..06ecd71bfc19eeda62cf6d7da1de38432de4e51e 100644 (file)
@@ -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,