Vishnunk90 has uploaded a new change for review. https://gerrit.wikimedia.org/r/104206
Change subject: wfRunHooks() return value no longer implies whether variable value was found ...................................................................... wfRunHooks() return value no longer implies whether variable value was found Bug: 12837 Trailing whitespace was removed. Change-Id: I8cec01afa3b8002f9ec2959c590003506f410764 --- M includes/parser/Parser.php 1 file changed, 1 insertion(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/06/104206/1 diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 9be75ae..ebae9e2 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3034,11 +3034,8 @@ return $wgLanguageCode; default: $ret = null; - if ( wfRunHooks( 'ParserGetVariableValueSwitch', array( &$this, &$this->mVarCache, &$index, &$ret, &$frame ) ) ) { + wfRunHooks( 'ParserGetVariableValueSwitch', array( &$this, &$this->mVarCache, &$index, &$ret, &$frame ) ); return $ret; - } else { - return null; - } } if ( $index ) { -- To view, visit https://gerrit.wikimedia.org/r/104206 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8cec01afa3b8002f9ec2959c590003506f410764 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Vishnunk90 <mails2vi...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits