X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSearchUpdate.php;h=849d6dc71cb290bd5e381a0af2fb76705cf498c6;hb=01a2ae7561614a6540117e275ad02bfed8d538b4;hp=135d9f04bdc7ba045db965c46cb3045d2d8aeb59;hpb=bc14eb8045cb02dead76a1c4203c45ab6e31cb36;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SearchUpdate.php b/includes/SearchUpdate.php index 135d9f04bd..849d6dc71c 100644 --- a/includes/SearchUpdate.php +++ b/includes/SearchUpdate.php @@ -1,21 +1,12 @@ legalSearchChars() . '&#;'; + $lc = SearchEngine::legalSearchChars() . '&#;'; if( $this->mText === false ) { $search->updateTitle($this->mId, @@ -103,18 +93,23 @@ 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 + * @addtogroup Search */ class SearchUpdateMyISAM extends SearchUpdate { # Inherits everything } -?> +