From 45bc8a360e6e273d4c24ae31083bc7751d254cbb Mon Sep 17 00:00:00 2001 From: vishnu Date: Sat, 28 Dec 2013 19:44:50 +0530 Subject: [PATCH] wfRunHooks() return value no longer implies whether variable value was found Bug: 12837 Change-Id: I459923deee4fa294f78f277620f229fc2a84d266 --- includes/parser/Parser.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 9be75ae943..31638cec89 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3034,11 +3034,8 @@ class Parser { return $wgLanguageCode; default: $ret = null; - if ( wfRunHooks( 'ParserGetVariableValueSwitch', array( &$this, &$this->mVarCache, &$index, &$ret, &$frame ) ) ) { - return $ret; - } else { - return null; - } + wfRunHooks( 'ParserGetVariableValueSwitch', array( &$this, &$this->mVarCache, &$index, &$ret, &$frame ) ); + return $ret; } if ( $index ) { -- 2.20.1