X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchSqlite.php;h=af29212ba1e9ed1c00a49384edc0e8e59b22556d;hb=2e7018e22c852e0710d42b10aedcd1a44c558876;hp=2c82c7d9a55b1472d3e377964a5300ce285344b1;hpb=2c12b1fd2afc14a03c16f05c844320985d911ca0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchSqlite.php b/includes/search/SearchSqlite.php index 2c82c7d9a5..af29212ba1 100644 --- a/includes/search/SearchSqlite.php +++ b/includes/search/SearchSqlite.php @@ -52,9 +52,9 @@ class SearchSqlite extends SearchDatabase { if ( preg_match_all( '/([-+<>~]?)(([' . $lc . ']+)(\*?)|"[^"]*")/', $filteredText, $m, PREG_SET_ORDER ) ) { foreach ( $m as $bits ) { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); list( /* all */, $modifier, $term, $nonQuoted, $wildcard ) = $bits; - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $nonQuoted != '' ) { $term = $nonQuoted; @@ -145,7 +145,7 @@ class SearchSqlite extends SearchDatabase { $searchChars = parent::legalSearchChars( $type ); if ( $type === self::CHARS_ALL ) { // " for phrase, * for wildcard - $searchChars = "\"*" . $searchChars; + $searchChars = "\"*" . $searchChars; } return $searchChars; }