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
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 ) {