$title = Title::newFromText( $term );
if ( !is_null( $title ) ) {
wfRunHooks( 'SpecialSearchNogomatch', array( &$title ) );
- wfDebugLog( 'nogomatch', $title->getFullText(), 'private' );
-
- # If the feature is enabled, go straight to the edit page
- if ( $this->getConfig()->get( 'GoToEdit' ) ) {
- $this->getOutput()->redirect( $title->getFullURL( array( 'action' => 'edit' ) ) );
-
- return;
- }
}
$this->showResults( $term );
}
$title = $result->getTitle();
- $titleSnippet = $result->getTitleSnippet( $terms );
+ $titleSnippet = $result->getTitleSnippet();
if ( $titleSnippet == '' ) {
$titleSnippet = null;
'class' => 'mw-ui-input mw-ui-input-inline',
) ) . "\n";
$out .= Html::hidden( 'fulltext', 'Search' ) . "\n";
- $out .= Xml::submitButton(
+ $out .= Html::submitButton(
$this->msg( 'searchbutton' )->text(),
- array( 'class' => array( 'mw-ui-button', 'mw-ui-progressive' ) )
+ array(), array( 'mw-ui-progressive' )
) . "\n";
// Results-info