Lastest followup to r50207: show create article link only for content and everything...
authorRobert Stojnić <rainman@users.mediawiki.org>
Sun, 31 May 2009 17:10:22 +0000 (17:10 +0000)
committerRobert Stojnić <rainman@users.mediawiki.org>
Sun, 31 May 2009 17:10:22 +0000 (17:10 +0000)
groups of namespaces this link might be a bit misplaced and confused.

includes/specials/SpecialSearch.php

index f7418b3..b554afb 100644 (file)
@@ -233,7 +233,7 @@ class SpecialSearch {
                $wgOut->addHtml( "<div class='searchresults'>" );
                
                // show direct page/create link
-               if( !is_null($t) ) {
+               if( !is_null($t) && ($this->active=='default' || $this->active=='all') ) {
                        if( !$t->exists() ) {
                                $wgOut->addWikiMsg( 'searchmenu-new', wfEscapeWikiText( $t->getPrefixedText() ) );
                        } else {