r14536 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14535‎ | r14536 | r14537 >
Date:13:31, 2 June 2006
Author:magnusmanske
Status:old
Tags:
Comment:
Dirty fix to ensure (?) correct XML output
Modified paths:
  • /trunk/wiki2xml/php/wiki2xml.php (modified) (history)

Diff [purge]

Index: trunk/wiki2xml/php/wiki2xml.php
@@ -127,7 +127,10 @@
128128
129129 function p_internal_link_text2 ( &$a , &$xml , $closeit )
130130 {
131 - return $this->p_internal_link_text ( $a , $xml , false , $closeit , false ) ;
 131+ $bi = $this->bold_italics ;
 132+ $ret = $this->p_internal_link_text ( $a , $xml , false , $closeit , false ) ;
 133+ if ( $closeit == ']]' && '' != $this->bold_italics ) $ret = false ; # Dirty hack to ensure good XML; FIXME!!!
 134+ return $ret ;
132135 }
133136
134137 function p_internal_link_text ( &$a , &$xml , $istarget = false , $closeit = "]]" , $mark = true )

Status & tagging log