r12944 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12943‎ | r12944 | r12945 >
Date:09:28, 3 February 2006
Author:vibber
Status:old
Tags:
Comment:
Suppress XML error details when detailed output is off
Modified paths:
  • /trunk/phase3/maintenance/parserTests.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.inc
@@ -546,10 +546,10 @@
547547 print $this->termColor( '1;31' ) . 'FAILED!' . $this->termReset() . "\n";
548548 if( $this->showDiffs ) {
549549 print $this->quickDiff( $result, $html );
 550+ if( !$this->wellFormed( $html ) ) {
 551+ print "XML error: $this->mXmlError\n";
 552+ }
550553 }
551 - if( !$this->wellFormed( $html ) ) {
552 - print "XML error: $this->mXmlError\n";
553 - }
554554 return false;
555555 }
556556

Status & tagging log