From: vishnu Date: Sat, 28 Dec 2013 14:14:50 +0000 (+0530) Subject: wfRunHooks() return value no longer implies whether variable value was found X-Git-Tag: 1.31.0-rc.0~17443^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=45bc8a360e6e273d4c24ae31083bc7751d254cbb;p=lhc%2Fweb%2Fwiklou.git wfRunHooks() return value no longer implies whether variable value was found Bug: 12837 Change-Id: I459923deee4fa294f78f277620f229fc2a84d266 --- 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 ) {