diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:31:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:58:39 +0200 |
commit | f6d65e533c62f6deb21342d4901ece24497b433e (patch) | |
tree | f28adf0362d14bcd448f7b65a7aaf38650f923aa /includes/deferred/SearchUpdate.php | |
parent | c27b2e832fe25651ef2410fae85b41072aae7519 (diff) |
Update to MediaWiki 1.25.1
Diffstat (limited to 'includes/deferred/SearchUpdate.php')
-rw-r--r-- | includes/deferred/SearchUpdate.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/includes/deferred/SearchUpdate.php b/includes/deferred/SearchUpdate.php index 5d084afd..ba14f099 100644 --- a/includes/deferred/SearchUpdate.php +++ b/includes/deferred/SearchUpdate.php @@ -78,9 +78,7 @@ class SearchUpdate implements DeferrableUpdate { return; } - wfProfileIn( __METHOD__ ); - - $page = WikiPage::newFromId( $this->id, WikiPage::READ_LATEST ); + $page = WikiPage::newFromID( $this->id, WikiPage::READ_LATEST ); foreach ( SearchEngine::getSearchTypes() as $type ) { $search = SearchEngine::create( $type ); @@ -108,7 +106,6 @@ class SearchUpdate implements DeferrableUpdate { $search->update( $this->id, $normalTitle, $search->normalizeText( $text ) ); } - wfProfileOut( __METHOD__ ); } /** @@ -125,7 +122,6 @@ class SearchUpdate implements DeferrableUpdate { $text = $wgContLang->normalizeForSearch( $text ); $lc = SearchEngine::legalSearchChars() . '&#;'; - wfProfileIn( __METHOD__ . '-regexps' ); $text = preg_replace( "/<\\/?\\s*[A-Za-z][^>]*?>/", ' ', $wgContLang->lc( " " . $text . " " ) ); # Strip HTML markup $text = preg_replace( "/(^|\\n)==\\s*([^\\n]+)\\s*==(\\s)/sD", @@ -172,7 +168,6 @@ class SearchUpdate implements DeferrableUpdate { # Strip wiki '' and ''' $text = preg_replace( "/''[']*/", " ", $text ); - wfProfileOut( __METHOD__ . '-regexps' ); return $text; } |