
reedy at svn
Nov 20, 2009, 2:28 PM
Post #1 of 1
(49 views)
Permalink
|
|
SVN: [59300] trunk/phase3/includes/MagicWord.php
|
|
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/59300 Revision: 59300 Author: reedy Date: 2009-11-20 22:28:37 +0000 (Fri, 20 Nov 2009) Log Message: ----------- bug 21583 MagicWord::match function documentation is wrong +Similar change to matchStart Modified Paths: -------------- trunk/phase3/includes/MagicWord.php Modified: trunk/phase3/includes/MagicWord.php =================================================================== --- trunk/phase3/includes/MagicWord.php 2009-11-20 21:00:43 UTC (rev 59299) +++ trunk/phase3/includes/MagicWord.php 2009-11-20 22:28:37 UTC (rev 59300) @@ -318,16 +318,16 @@ } /** - * 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 ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS [at] lists https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
|