From: Gabriel Wicke Date: Wed, 7 Apr 2004 16:12:18 +0000 (+0000) Subject: finally found the reason for the li bug, top a now in skin X-Git-Tag: 1.3.0beta1~562 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=3fba40b06c62ce5220f1fc114131d47fcbf3623c;p=lhc%2Fweb%2Fwiklou.git finally found the reason for the li bug, top a now in skin --- diff --git a/includes/Parser.php b/includes/Parser.php index 4ac8a2dc91..d1c3d53b66 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -426,7 +426,7 @@ class Parser $text = $wgDateFormatter->reformat( $this->mOptions->getDateFormat(), $text ); } - $text = ' '.$this->replaceExternalLinks( $text ); + $text = $this->replaceExternalLinks( $text ); $text = $this->doTokenizedParser ( $text ); $text = $this->doTableStuff ( $text ) ; @@ -974,7 +974,6 @@ class Parser # and making lists from lines starting with * # : etc. # $a = explode( "\n", $text ); - $a[0] = "\n".$a[0]; $lastPref = $text = ''; $this->mDTopen = $inBlockElem = false; @@ -1591,8 +1590,8 @@ class Parser } $full .= $block; if( $doShowToc && !$i) { - # Let's add a top anchor just in case we want to link to the top of the page - $full = "".$full.$toc; + # Top anchor now in skin + $full = $full.$toc; } if( !empty( $head[$i] ) ) {