From: Anders Wegge Jakobsen Date: Tue, 18 Apr 2006 20:45:09 +0000 (+0000) Subject: Bug 5546 Fix wfElement() X-Git-Tag: 1.31.0-rc.0~57428 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=8ae156e2bc80f307863359cbd793269a29b68686;p=lhc%2Fweb%2Fwiklou.git Bug 5546 Fix wfElement() --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8948fac9ba..6c6fbc4a6b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -102,6 +102,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 5592) Actions are logged with the default language for the wiki, not the language of the user performing the operation. * (bug 5644) Error in LanguageBs.php file +* (bug 5646) Compare for identical types in wfElement() == Compatibility == diff --git a/includes/XmlFunctions.php b/includes/XmlFunctions.php index efb37490d9..fa22540c14 100644 --- a/includes/XmlFunctions.php +++ b/includes/XmlFunctions.php @@ -21,7 +21,7 @@ function wfElement( $element, $attribs = null, $contents = '') { if( is_null( $contents ) ) { $out .= '>'; } else { - if( $contents == '' ) { + if( $contents === '' ) { $out .= ' />'; } else { $out .= '>' . htmlspecialchars( $contents ) . "";