X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FSearchUpdate.php;h=087a8ba5dc7979b43450dca552ad4c31b802e35f;hb=10500033b7264ac2ec2fdfacfbb72450888e8e81;hp=37981a67d7f700bd93761f8bec58a7e3d28bdf1a;hpb=ca5f647c09a37f843e32e04829aa29735c08b493;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SearchUpdate.php b/includes/SearchUpdate.php index 37981a67d7..087a8ba5dc 100644 --- a/includes/SearchUpdate.php +++ b/includes/SearchUpdate.php @@ -1,12 +1,7 @@ legalSearchChars() . '&#;'; + $lc = SearchEngine::legalSearchChars() . '&#;'; if( $this->mText === false ) { $search->updateTitle($this->mId, @@ -98,18 +93,21 @@ class SearchUpdate { # Strip wiki '' and ''' $text = preg_replace( "/''[']*/", " ", $text ); wfProfileOut( "$fname-regexps" ); + + wfRunHooks( 'SearchUpdate', array( $this->mId, $this->mNamespace, $this->mTitle, &$text ) ); + + # Perform the actual update $search->update($this->mId, Title::indexTitle( $this->mNamespace, $this->mTitle ), $text); + wfProfileOut( $fname ); } } /** * Placeholder class - * @package MediaWiki + * @ingroup Search */ class SearchUpdateMyISAM extends SearchUpdate { # Inherits everything } - -?>