r51246 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r51245
|
r51246
|
r51247
>
Date:
17:10, 31 May 2009
Author:
rainman
Status:
ok
Tags:
Comment:
Lastest followup to
r50207
: show create article link only for content and everything searches.. when searching in other
groups of namespaces this link might be a bit misplaced and confused.
Modified paths:
/trunk/phase3/includes/specials/SpecialSearch.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/specials/SpecialSearch.php
—
—
@@ -233,7 +233,7 @@
234
234
$wgOut->addHtml( "<div class='searchresults'>" );
235
235
236
236
// show direct page/create link
237
- if( !is_null($t) ) {
237
+ if( !is_null($t) && ($this->active=='default' || $this->active=='all') ) {
238
238
if( !$t->exists() ) {
239
239
$wgOut->addWikiMsg( 'searchmenu-new', wfEscapeWikiText( $t->getPrefixedText() ) );
240
240
} else {
Follow-up revisions
Revision
Commit summary
Author
Date
r52665
Revert
r51246
for now. It might not be *always* appropriate to show the page ...
rainman
23:37, 1 July 2009
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r50207
Redesign of the "new search UI" per Trevor's design plans from usability wiki:...
rainman
23:07, 4 May 2009
Status & tagging log
03:00, 6 June 2009
Tim Starling
(
talk
|
contribs
)
changed the
status
of r51246
[
removed:
new
added:
ok]