rm only core usage of in_string(), I think it's silly
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 1 Jun 2011 00:15:02 +0000 (00:15 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 1 Jun 2011 00:15:02 +0000 (00:15 +0000)
includes/Article.php

index a7468e9..073dd99 100644 (file)
@@ -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