r3011 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r3010‎ | r3011 | r3012 >
Date:16:12, 7 April 2004
Author:gabrielwicke
Status:old
Tags:
Comment:
finally found the reason for the li bug, top a now in skin
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -426,7 +426,7 @@
427427 $text = $wgDateFormatter->reformat( $this->mOptions->getDateFormat(), $text );
428428 }
429429
430 - $text = ' '.$this->replaceExternalLinks( $text );
 430+ $text = $this->replaceExternalLinks( $text );
431431 $text = $this->doTokenizedParser ( $text );
432432 $text = $this->doTableStuff ( $text ) ;
433433
@@ -974,7 +974,6 @@
975975 # and making lists from lines starting with * # : etc.
976976 #
977977 $a = explode( "\n", $text );
978 - $a[0] = "\n".$a[0];
979978 $lastPref = $text = '';
980979 $this->mDTopen = $inBlockElem = false;
981980
@@ -1591,8 +1590,8 @@
15921591 }
15931592 $full .= $block;
15941593 if( $doShowToc && !$i) {
1595 - # Let's add a top anchor just in case we want to link to the top of the page
1596 - $full = "<a name=\"top\"></a>".$full.$toc;
 1594+ # Top anchor now in skin
 1595+ $full = $full.$toc;
15971596 }
15981597
15991598 if( !empty( $head[$i] ) ) {

Status & tagging log