From: Chad Horohoe Date: Wed, 1 Jun 2011 00:15:02 +0000 (+0000) Subject: rm only core usage of in_string(), I think it's silly X-Git-Tag: 1.31.0-rc.0~29816 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=bf4c6df0a975ff6df06da79f56e12e3f08883a39;p=lhc%2Fweb%2Fwiklou.git rm only core usage of in_string(), I think it's silly --- diff --git a/includes/Article.php b/includes/Article.php index a7468e921a..073dd997bd 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -699,7 +699,7 @@ class Article { if ( $text === false ) { $text = $this->getRawText(); } - return in_string( ',', $text ); + return strpos( $text, ',' ) !== false; case 'link': if ( $editInfo ) { // ParserOutput::getLinks() is a 2D array of page links, so