mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
Stop using in_string(). WikiScripts and AbuseFilter are the only exts still using this silly thing.
This commit is contained in:
parent
c31468e363
commit
e60a8ed523
Notes:
Chad Horohoe
2012-01-11 14:47:27 +00:00
|
@ -13,7 +13,7 @@ $pass = $fail = 0;
|
|||
$parser = new ExprParser;
|
||||
foreach ( $tests as $test ) {
|
||||
$test = trim( $test );
|
||||
if ( in_string( ';', $test ) )
|
||||
if ( strpos( $test, ';' ) !== false )
|
||||
list( $input, $expected ) = explode( ';', $test );
|
||||
else {
|
||||
$input = $test;
|
||||
|
|
Loading…
Reference in a new issue