Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -261,12 +261,15 @@ |
262 | 262 | $wgOut->addHtml( "<div class='searchresults'>" ); |
263 | 263 | |
264 | 264 | // show direct page/create link |
265 | | - if( !is_null($t) && ($this->active=='default' || $this->active=='all') ) { |
| 265 | + if( !is_null($t) && ($this->active=='default' || $this->active=='all') && !$search->isComplexQuery($term) ) { |
266 | 266 | if( !$t->exists() ) { |
267 | 267 | $wgOut->addWikiMsg( 'searchmenu-new', wfEscapeWikiText( $t->getPrefixedText() ) ); |
268 | 268 | } else { |
269 | 269 | $wgOut->addWikiMsg( 'searchmenu-exists', wfEscapeWikiText( $t->getPrefixedText() ) ); |
270 | 270 | } |
| 271 | + } else { |
| 272 | + // preserve the paragraph for margins etc... |
| 273 | + $wgOut->addHTML('<p></p>'); |
271 | 274 | } |
272 | 275 | |
273 | 276 | // prev/next links |