dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81f62b6
)
Reversion/followup to r59300 as per Tims comment
author
Sam Reed
<reedy@users.mediawiki.org>
Tue, 12 Jan 2010 07:24:25 +0000
(07:24 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Tue, 12 Jan 2010 07:24:25 +0000
(07:24 +0000)
includes/MagicWord.php
patch
|
blob
|
history
diff --git
a/includes/MagicWord.php
b/includes/MagicWord.php
index
f5ac889
..
632395d
100644
(file)
--- a/
includes/MagicWord.php
+++ b/
includes/MagicWord.php
@@
-320,19
+320,19
@@
class MagicWord {
}
/**
}
/**
- * Returns t
he number of times
the text contains the word
- * @return
int
+ * Returns t
rue if
the text contains the word
+ * @return
bool
*/
function match( $text ) {
*/
function match( $text ) {
- return preg_match( $this->getRegex(), $text );
+ return
(bool)
preg_match( $this->getRegex(), $text );
}
/**
}
/**
- * Returns if the text starts with the word
- * @return
int
+ * Returns
true
if the text starts with the word
+ * @return
bool
*/
function matchStart( $text ) {
*/
function matchStart( $text ) {
- return preg_match( $this->getRegexStart(), $text );
+ return
(bool)
preg_match( $this->getRegexStart(), $text );
}
/**
}
/**