X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fdeferred%2FSearchUpdate.php;h=2766bcb18586fdb052c2c7340343e67c7cb52731;hp=c94ae2a772d1a32a4faadde757d92064dc191c28;hb=89539f2aa1b158fdcc703ad053e2580cb97a6385;hpb=c6d1ceb90a9684fa0da758d88ba1e994fad4cffc diff --git a/includes/deferred/SearchUpdate.php b/includes/deferred/SearchUpdate.php index c94ae2a772..2766bcb185 100644 --- a/includes/deferred/SearchUpdate.php +++ b/includes/deferred/SearchUpdate.php @@ -44,8 +44,6 @@ class SearchUpdate implements DeferrableUpdate { private $page; /** - * Constructor - * * @param int $id Page id to update * @param Title|string $title Title of page to update * @param Content|string|bool $c Content of the page to update. Default: false. @@ -124,7 +122,7 @@ class SearchUpdate implements DeferrableUpdate { # Language-specific strip/conversion $text = $wgContLang->normalizeForSearch( $text ); $se = $se ?: MediaWikiServices::getInstance()->newSearchEngine(); - $lc = $se->legalSearchCharsForUpdate() . '&#;'; + $lc = $se->legalSearchChars() . '&#;'; $text = preg_replace( "/<\\/?\\s*[A-Za-z][^>]*?>/", ' ', $wgContLang->lc( " " . $text . " " ) ); # Strip HTML markup @@ -207,7 +205,7 @@ class SearchUpdate implements DeferrableUpdate { $ns = $this->title->getNamespace(); $title = $this->title->getText(); - $lc = $search->legalSearchCharsForUpdate() . '&#;'; + $lc = $search->legalSearchChars() . '&#;'; $t = $wgContLang->normalizeForSearch( $title ); $t = preg_replace( "/[^{$lc}]+/", ' ', $t ); $t = $wgContLang->lc( $t );