From f269af181b7d9fde8f3c8583b834f7684200b753 Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 29 Mar 2004 11:54:13 +0000 Subject: [PATCH] Use clearer-named CheckForJavaScript in stead of !soupNazi. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6921 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/newmail/setup.php | 5 ++--- plugins/squirrelspell/setup.php | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/newmail/setup.php b/plugins/newmail/setup.php index f416a7b4..9364b9a7 100644 --- a/plugins/newmail/setup.php +++ b/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', diff --git a/plugins/squirrelspell/setup.php b/plugins/squirrelspell/setup.php index 5869cca3..06ecd71b 100644 --- a/plugins/squirrelspell/setup.php +++ b/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, -- 2.25.1