Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -692,6 +692,7 @@ |
693 | 693 | ), |
694 | 694 | 'search' => array( |
695 | 695 | 'searchresults', |
| 696 | + 'searchresults-title', |
696 | 697 | 'searchresulttext', |
697 | 698 | 'searchsubtitle', |
698 | 699 | 'searchsubtitleinvalid', |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -277,8 +277,10 @@ |
278 | 278 | */ |
279 | 279 | function setupPage( $term ) { |
280 | 280 | global $wgOut; |
281 | | - if( !empty( $term ) ) |
282 | | - $wgOut->setPageTitle( wfMsg( 'searchresults' ) ); |
| 281 | + if( !empty( $term ) ){ |
| 282 | + $wgOut->setPageTitle( wfMsg( 'searchresults') ); |
| 283 | + $wgOut->setHTMLTitle( wfMsg( 'pagetitle', wfMsg( 'searchresults-title', $term) ) ); |
| 284 | + } |
283 | 285 | $subtitlemsg = ( Title::newFromText( $term ) ? 'searchsubtitle' : 'searchsubtitleinvalid' ); |
284 | 286 | $wgOut->setSubtitle( $wgOut->parse( wfMsg( $subtitlemsg, wfEscapeWikiText($term) ) ) ); |
285 | 287 | $wgOut->setArticleRelated( false ); |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1327,6 +1327,7 @@ |
1328 | 1328 | |
1329 | 1329 | # Search results |
1330 | 1330 | 'searchresults' => 'Search results', |
| 1331 | +'searchresults-title' => 'Search results for $1', |
1331 | 1332 | 'searchresulttext' => 'For more information about searching {{SITENAME}}, see [[{{MediaWiki:Helppage}}|{{int:help}}]].', |
1332 | 1333 | 'searchsubtitle' => 'You searched for \'\'\'[[:$1]]\'\'\' ([[Special:Prefixindex/$1|all pages starting with "$1"]] | [[Special:Whatlinkshere/$1|all pages that link to "$1"]])', |
1333 | 1334 | 'searchsubtitleinvalid' => "You searched for '''$1'''", |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -55,6 +55,7 @@ |
56 | 56 | * Not setting various parameters in Foreign Repos now fails more gracefully |
57 | 57 | * (bug 2333) Redirects are properly rendered when previewing an edit. |
58 | 58 | * (bug 14972) Use localized alias of Special:Search on all search forms |
| 59 | +* (bug 11035) Special:Search should have descriptive <title> |
59 | 60 | |
60 | 61 | === API changes in 1.14 === |
61 | 62 | |