r52665 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52664‎ | r52665 | r52666 >
Date:23:37, 1 July 2009
Author:rainman
Status:ok
Tags:
Comment:
Revert r51246 for now. It might not be *always* appropriate to show the page creation link, but to be consistent we are going to show for now.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialSearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialSearch.php
@@ -261,7 +261,7 @@
262262 $wgOut->addHtml( "<div class='searchresults'>" );
263263
264264 // show direct page/create link
265 - if( !is_null($t) && ($this->active=='default' || $this->active=='all') ) {
 265+ if( !is_null($t) ) {
266266 if( !$t->exists() ) {
267267 $wgOut->addWikiMsg( 'searchmenu-new', wfEscapeWikiText( $t->getPrefixedText() ) );
268268 } else {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r51246Lastest followup to r50207: show create article link only for content and eve...rainman17:10, 31 May 2009

Status & tagging log