From: Niklas Laxström Date: Sat, 3 May 2008 12:27:53 +0000 (+0000) Subject: * Xml:: X-Git-Tag: 1.31.0-rc.0~47935 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=da51ea6b44449bbe1eb0705318a20602ee9fd5aa;p=lhc%2Fweb%2Fwiklou.git * Xml:: --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 8103abfa94..412b0bd941 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1636,7 +1636,9 @@ END $attribs = array( 'id' => 'wpTextbox1', 'name' => 'wpTextbox1', 'cols' => $cols, 'rows' => $rows, 'readonly' => 'readonly' ); $wgOut->addHtml( '
' ); $wgOut->addWikiMsg( $first ? 'blockedoriginalsource' : 'blockededitsource', $this->mTitle->getPrefixedText() ); - $wgOut->addHtml( wfOpenElement( 'textarea', $attribs ) . htmlspecialchars( $source ) . wfCloseElement( 'textarea' ) ); + # Why we don't use Xml::element here? + # Is it because if $source is '', it returns