From 27160794d01040bf7f249353fb56569837d6a0a0 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 20 Nov 2009 22:28:37 +0000 Subject: [PATCH] bug 21583 MagicWord::match function documentation is wrong +Similar change to matchStart --- includes/MagicWord.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/MagicWord.php b/includes/MagicWord.php index 8877bac687..aad267bf35 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -318,16 +318,16 @@ class MagicWord { } /** - * Returns true if the text contains the word - * @return bool + * Returns the number of times the text contains the word + * @return int */ function match( $text ) { return preg_match( $this->getRegex(), $text ); } /** - * Returns true if the text starts with the word - * @return bool + * Returns if the text starts with the word + * @return int */ function matchStart( $text ) { return preg_match( $this->getRegexStart(), $text ); -- 2.20.1