* Automatically add old redirects to the redirect table when needed
* (bug 6934) Allow separated inclusions, links, redirects on whatlinkshere
* Add a footer (emailuser-footer) to the bottom of messages sent with
-Special:EmailUser
+ Special:EmailUser
* Cache image redirects
=== Bug fixes in 1.13 ===
* Hide (undo) link if user isn't able to edit page
* Invalidate cache of pages that includes images via redirects on upload
* (bug 13705) Don't show rollback link in page history if called with dir=prev
+* (bug 13708) Don't set "Search results" title when loading Special:Search
+ without query
=== API changes in 1.13 ===
*/
function setupPage( $term ) {
global $wgOut;
- $wgOut->setPageTitle( wfMsg( 'searchresults' ) );
- $subtitlemsg = ( Title::newFromText($term) ? 'searchsubtitle' : 'searchsubtitleinvalid' );
+ if( !empty( $term ) )
+ $wgOut->setPageTitle( wfMsg( 'searchresults' ) );
+ $subtitlemsg = ( Title::newFromText( $term ) ? 'searchsubtitle' : 'searchsubtitleinvalid' );
$wgOut->setSubtitle( $wgOut->parse( wfMsg( $subtitlemsg, wfEscapeWikiText($term) ) ) );
$wgOut->setArticleRelated( false );
$wgOut->setRobotpolicy( 'noindex,nofollow' );