diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-05-16 20:58:53 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-05-16 20:58:53 +0000 |
commit | cecb985bee3bdd252e1b8dc0bd500b37cd52be01 (patch) | |
tree | 17266aa237742640aabee7856f0202317a45d540 /includes/SearchUpdate.php | |
parent | 0bac06c301f2a83edb0236e4c2434da16848d549 (diff) |
Aktualisierung auf MediaWiki 1.10.0
Plugins angepasst und verbessert
kleine Korrekturen am Design
Diffstat (limited to 'includes/SearchUpdate.php')
-rw-r--r-- | includes/SearchUpdate.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/SearchUpdate.php b/includes/SearchUpdate.php index 37981a67..724197c1 100644 --- a/includes/SearchUpdate.php +++ b/includes/SearchUpdate.php @@ -1,12 +1,7 @@ <?php /** * See deferred.txt - * @package MediaWiki - */ - -/** - * - * @package MediaWiki + * @addtogroup Search */ class SearchUpdate { @@ -38,7 +33,7 @@ class SearchUpdate { wfProfileIn( $fname ); $search = SearchEngine::create(); - $lc = $search->legalSearchChars() . '&#;'; + $lc = SearchEngine::legalSearchChars() . '&#;'; if( $this->mText === false ) { $search->updateTitle($this->mId, @@ -98,15 +93,20 @@ 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 |