r14539 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14538‎ | r14539 | r14540 >
Date:14:19, 2 June 2006
Author:magnusmanske
Status:old
Tags:
Comment:
half-fix
Modified paths:
  • /trunk/wiki2xml/php/wiki2xml.php (modified) (history)

Diff [purge]

Index: trunk/wiki2xml/php/wiki2xml.php
@@ -143,6 +143,10 @@
144144 $closeit1 = $closeit[0] ;
145145 while ( 1 )
146146 {
 147+ if ( $b >= $this->wl ) {
 148+ $this->bold_italics = $bi ;
 149+ return false ;
 150+ }
147151 $c = $this->w[$b] ;
148152 if ( $closeit != "}}" && $c == "\n" ) {
149153 $this->bold_italics = $bi ;
@@ -166,11 +170,11 @@
167171 }
168172 $x .= htmlspecialchars ( $c ) ;
169173 $b++ ;
170 - if ( $b >= $this->wl ) {
 174+/* if ( $b >= $this->wl ) {
171175 $this->bold_italics = $bi ;
172176 return false ;
173 - }
174 - }
 177+ }*/
 178+ }
175179
176180 if ( $closeit == "}}" && !$istarget ) {
177181 $xml .= substr ( $this->w , $a , $b - $a ) ;

Status & tagging log