Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -258,18 +258,6 @@ |
259 | 259 | |
260 | 260 | $wgOut->addHtml( Xml::closeElement( 'form' ) ); |
261 | 261 | $wgOut->addHtml( "<div class='searchresults'>" ); |
262 | | - |
263 | | - // show direct page/create link |
264 | | - if( !is_null($t) ) { |
265 | | - if( !$t->exists() ) { |
266 | | - $wgOut->addWikiMsg( 'searchmenu-new', wfEscapeWikiText( $t->getPrefixedText() ) ); |
267 | | - } else { |
268 | | - $wgOut->addWikiMsg( 'searchmenu-exists', wfEscapeWikiText( $t->getPrefixedText() ) ); |
269 | | - } |
270 | | - } else { |
271 | | - // preserve the paragraph for margins etc... |
272 | | - $wgOut->addHTML('<p></p>'); |
273 | | - } |
274 | 262 | |
275 | 263 | // prev/next links |
276 | 264 | if( $num || $this->offset ) { |
— | — | @@ -314,6 +302,18 @@ |
315 | 303 | if( $num === 0 ) { |
316 | 304 | $wgOut->addWikiMsg( 'search-nonefound', wfEscapeWikiText( $term ) ); |
317 | 305 | } |
| 306 | + |
| 307 | + // show direct page/create link |
| 308 | + if( !is_null($t) ) { |
| 309 | + if( !$t->exists() ) { |
| 310 | + $wgOut->addWikiMsg( 'searchmenu-new', wfEscapeWikiText( $t->getPrefixedText() ) ); |
| 311 | + } else { |
| 312 | + $wgOut->addWikiMsg( 'searchmenu-exists', wfEscapeWikiText( $t->getPrefixedText() ) ); |
| 313 | + } |
| 314 | + } else { |
| 315 | + // preserve the paragraph for margins etc... |
| 316 | + $wgOut->addHTML('<p></p>'); |
| 317 | + } |
318 | 318 | $wgOut->addHtml( "</div>" ); |
319 | 319 | if( $num === 0 ) { |
320 | 320 | $wgOut->addHTML( $this->searchFocus() ); |