mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-24 07:03:41 +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,
|
||||
'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',
|
||||
|
@ -441,8 +441,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