Vishnunk90 has uploaded a new change for review. https://gerrit.wikimedia.org/r/104203
Change subject: wfRunHooks() return value no longer implies whether variable value was found. Bug: 12837 ...................................................................... wfRunHooks() return value no longer implies whether variable value was found. Bug: 12837 Change-Id: I459923deee4fa294f78f277620f229fc2a84d266 --- M includes/parser/Parser.php 1 file changed, 2 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/03/104203/1 diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 9be75ae..c58675f 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3034,11 +3034,9 @@ 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/104203 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I459923deee4fa294f78f277620f229fc2a84d266 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