Bug 5546 Fix wfElement()

This commit is contained in:
Anders Wegge Jakobsen 2006-04-18 20:45:09 +00:00
parent 1fe93116b5
commit 8ae156e2bc
2 changed files with 2 additions and 1 deletions

View file

@ -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 ==

View file

@ -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 ) . "</$element>";