From: aude Date: Wed, 2 Dec 2015 15:34:25 +0000 (+0100) Subject: Do SearchUpdate::indexTitle after search-update is supported check X-Git-Tag: 1.31.0-rc.0~8832^2 X-Git-Url: http://git.cyclocoop.org/%22.%20%20%20generer_url_action%28%22logout%22%2C%22logout=prive%22%29%20.%20%20%20%22?a=commitdiff_plain;h=659961bb5d74937071c59bbc733259650336d3d5;p=lhc%2Fweb%2Fwiklou.git Do SearchUpdate::indexTitle after search-update is supported check If the SearchEngine does not support search-update, then $indexTitle is not used and thus no need to create it in that case. Change-Id: I487d06274e921223a3bcb5af846b48b7c2b8065e --- diff --git a/includes/deferred/SearchUpdate.php b/includes/deferred/SearchUpdate.php index 6ed1d00177..867fc61003 100644 --- a/includes/deferred/SearchUpdate.php +++ b/includes/deferred/SearchUpdate.php @@ -82,11 +82,11 @@ class SearchUpdate implements DeferrableUpdate { foreach ( SearchEngine::getSearchTypes() as $type ) { $search = SearchEngine::create( $type ); - $indexTitle = $this->indexTitle( $search ); if ( !$search->supports( 'search-update' ) ) { continue; } + $indexTitle = $this->indexTitle( $search ); $normalTitle = $search->normalizeText( $indexTitle ); if ( $page === null ) {