Merge "Update usage of getTitleSnippet(), getRedirectSnippet() and getSectionSnippet()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 5 Oct 2014 18:30:31 +0000 (18:30 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 5 Oct 2014 18:30:31 +0000 (18:30 +0000)
1  2 
includes/specials/SpecialSearch.php

@@@ -197,6 -197,14 +197,6 @@@ class SpecialSearch extends SpecialPag
                $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