return;
}
# If there's an exact or very near match, jump right there.
- $title = $this->newSearchEngine()->
- getNearMatcher( $this->getConfig() )->getNearMatch( $term );
+ $title = $this->getSearchEngine()
+ ->getNearMatcher( $this->getConfig() )->getNearMatch( $term );
if ( !is_null( $title ) &&
Hooks::run( 'SpecialSearchGoResult', [ $term, $title, &$url ] )
$user->setOption( 'searchNs' . $n, true );
}
- $user->saveSettings();
+ DeferredUpdates::addCallableUpdate( function () use ( $user ) {
+ $user->saveSettings();
+ } );
+
return true;
}
'name' => 'search',
'autofocus' => trim( $term ) === '',
'value' => $term,
+ 'dataLocation' => 'content',
] );
$out =