From: Robert Stojnić Date: Sun, 21 Jun 2009 22:12:10 +0000 (+0000) Subject: Preserve formatting even when create article link is absent X-Git-Tag: 1.31.0-rc.0~41255 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=4090f22983013672ed1d8ebb391dac23a857460d;p=lhc%2Fweb%2Fwiklou.git Preserve formatting even when create article link is absent --- diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index aa126a981b..314aab05b9 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -261,12 +261,15 @@ class SpecialSearch { $wgOut->addHtml( "
" ); // show direct page/create link - if( !is_null($t) && ($this->active=='default' || $this->active=='all') ) { + if( !is_null($t) && ($this->active=='default' || $this->active=='all') && !$search->isComplexQuery($term) ) { if( !$t->exists() ) { $wgOut->addWikiMsg( 'searchmenu-new', wfEscapeWikiText( $t->getPrefixedText() ) ); } else { $wgOut->addWikiMsg( 'searchmenu-exists', wfEscapeWikiText( $t->getPrefixedText() ) ); } + } else { + // preserve the paragraph for margins etc... + $wgOut->addHTML('

'); } // prev/next links