From 2113a11b0b48413c045c3cc6c250a049d089f24d Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 3 Jul 2006 08:57:29 +0000 Subject: [PATCH] Revert addToArray() change, add isCaseSensitive() --- includes/MagicWord.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/includes/MagicWord.php b/includes/MagicWord.php index 8ef8ed145f..ef20603717 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -424,16 +424,14 @@ class MagicWord { * lookup in a list of magic words */ function addToArray( &$array, $value ) { - if ( $this->mCaseSensitive ) { - foreach ( $this->mSynonyms as $syn ) { - $array[$syn] = $value; - } - } else { - foreach ( $this->mSynonyms as $syn ) { - $array[strtolower($syn)] = $value; - } + foreach ( $this->mSynonyms as $syn ) { + $array[$syn] = $value; } } + + function isCaseSensitive() { + return $this->mCaseSensitive; + } } /** -- 2.20.1