mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-24 15:13:34 +00:00
Fix capitalization and tests of $this->mId.
Property name is $mID, certain parts were testing $mId, and then using isset to (presumably) hide the undefined property warnings. Change-Id: I0c2d29fbdb8314aa0c04bea387364a7307e68b9b
This commit is contained in:
parent
f14419180a
commit
048a97e560
|
@ -331,8 +331,8 @@ class InputBox {
|
||||||
'action' => $wgScript,
|
'action' => $wgScript,
|
||||||
'method' => 'get'
|
'method' => 'get'
|
||||||
);
|
);
|
||||||
if( isset( $this->mId ) ) {
|
if( $this->mID !== '' ) {
|
||||||
$createBoxParams['id'] = Sanitizer::escapeId( $this->mId );
|
$createBoxParams['id'] = Sanitizer::escapeId( $this->mID );
|
||||||
}
|
}
|
||||||
$htmlOut .= Xml::openElement( 'form', $createBoxParams );
|
$htmlOut .= Xml::openElement( 'form', $createBoxParams );
|
||||||
$htmlOut .= Xml::openElement( 'input',
|
$htmlOut .= Xml::openElement( 'input',
|
||||||
|
@ -441,8 +441,8 @@ class InputBox {
|
||||||
'action' => $wgScript,
|
'action' => $wgScript,
|
||||||
'method' => 'get'
|
'method' => 'get'
|
||||||
);
|
);
|
||||||
if( isset( $this->mId ) ) {
|
if( $this->mID !== '' ) {
|
||||||
$commentFormParams['id'] = Sanitizer::escapeId( $this->mId );
|
$commentFormParams['id'] = Sanitizer::escapeId( $this->mID );
|
||||||
}
|
}
|
||||||
$htmlOut .= Xml::openElement( 'form', $commentFormParams );
|
$htmlOut .= Xml::openElement( 'form', $commentFormParams );
|
||||||
$htmlOut .= Xml::openElement( 'input',
|
$htmlOut .= Xml::openElement( 'input',
|
||||||
|
|
Loading…
Reference in a new issue