r41161 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41160‎ | r41161 | r41162 >
Date:17:01, 22 September 2008
Author:demon
Status:old
Tags:
Comment:
Call Xml class directly, rather than the global function.
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)
  • /trunk/phase3/includes/parser/Parser_OldPP.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser_OldPP.php
@@ -3887,7 +3887,7 @@
38883888 * @return mixed An expanded string, or false if invalid.
38893889 */
38903890 function validateSig( $text ) {
3891 - return( wfIsWellFormedXmlFragment( $text ) ? $text : false );
 3891+ return( Xml::isWellFormedXmlFragment( $text ) ? $text : false );
38923892 }
38933893
38943894 /**
Index: trunk/phase3/includes/parser/Parser.php
@@ -3822,7 +3822,7 @@
38233823 * @return mixed An expanded string, or false if invalid.
38243824 */
38253825 function validateSig( $text ) {
3826 - return( wfIsWellFormedXmlFragment( $text ) ? $text : false );
 3826+ return( Xml::isWellFormedXmlFragment( $text ) ? $text : false );
38273827 }
38283828
38293829 /**

Status & tagging log