Use clearer-named CheckForJavaScript in stead of !soupNazi.
[squirrelmail.git] / plugins / squirrelspell / setup.php
index fd049cc2982d22569381bc07766a59dfa0c65f18..06ecd71bfc19eeda62cf6d7da1de38432de4e51e 100644 (file)
@@ -4,13 +4,15 @@
  * -----------
  * Squirrelspell setup file, as defined by the SquirrelMail-1.2 API.
  * 
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * $Id$
  *
  * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
  * @version $Date$
+ * @package plugins
+ * @subpackage squirrelspell
  */
 
 /**
@@ -37,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. 
@@ -64,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,