Brian Wolff has uploaded a new change for review. https://gerrit.wikimedia.org/r/124132
Change subject: Fix capitalization and tests of $this->mId. ...................................................................... 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 --- M InputBox.classes.php 1 file changed, 4 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/InputBox refs/changes/32/124132/1 diff --git a/InputBox.classes.php b/InputBox.classes.php index b3fdd0c..5103565 100644 --- a/InputBox.classes.php +++ b/InputBox.classes.php @@ -331,8 +331,8 @@ '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 @@ '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', -- To view, visit https://gerrit.wikimedia.org/r/124132 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0c2d29fbdb8314aa0c04bea387364a7307e68b9b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/InputBox Gerrit-Branch: master Gerrit-Owner: Brian Wolff <bawolff...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits