search: make legalSearchChars() non-static
[lhc/web/wiklou.git] / includes / search / SearchHighlighter.php
index 5dfc4df..469502f 100644 (file)
@@ -519,7 +519,7 @@ class SearchHighlighter {
                $extract = "";
                $contLang = MediaWikiServices::getInstance()->getContentLanguage();
                foreach ( $lines as $line ) {
-                       if ( 0 == $contextlines ) {
+                       if ( $contextlines == 0 ) {
                                break;
                        }
                        ++$lineno;