Bug 5546 Fix wfElement()
This commit is contained in:
parent
1fe93116b5
commit
8ae156e2bc
2 changed files with 2 additions and 1 deletions
|
|
@ -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 ==
|
||||
|
||||
|
|
|
|||
|
|
@ -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>";
|
||||
|
|
|
|||
Loading…
Reference in a new issue