mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-12 01:01:52 +00:00
Merge "Fix capitalization and tests of $this->mId."
This commit is contained in:
commit
a95d45c730
|
@ -333,8 +333,8 @@ class InputBox {
|
|||
'action' => $wgScript,
|
||||
'method' => 'get'
|
||||
);
|
||||
if( isset( $this->mId ) ) {
|
||||
$createBoxParams['id'] = Sanitizer::escapeId( $this->mId );
|
||||
if( $this->mID !== '' ) {
|
||||
$createBoxParams['id'] = Sanitizer::escapeId( $this->mID );
|
||||
}
|
||||
$htmlOut .= Xml::openElement( 'form', $createBoxParams );
|
||||
$htmlOut .= Xml::openElement( 'input',
|
||||
|
@ -515,8 +515,8 @@ class InputBox {
|
|||
'action' => $wgScript,
|
||||
'method' => 'get'
|
||||
);
|
||||
if( isset( $this->mId ) ) {
|
||||
$commentFormParams['id'] = Sanitizer::escapeId( $this->mId );
|
||||
if( $this->mID !== '' ) {
|
||||
$commentFormParams['id'] = Sanitizer::escapeId( $this->mID );
|
||||
}
|
||||
$htmlOut .= Xml::openElement( 'form', $commentFormParams );
|
||||
$htmlOut .= Xml::openElement( 'input',
|
||||
|
|
Loading…
Reference in a new issue