bug 21583 MagicWord::match function documentation is wrong
authorSam Reed <reedy@users.mediawiki.org>
Fri, 20 Nov 2009 22:28:37 +0000 (22:28 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 20 Nov 2009 22:28:37 +0000 (22:28 +0000)
+Similar change to matchStart

includes/MagicWord.php

index 8877bac..aad267b 100644 (file)
@@ -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 );