Page MenuHomePhabricator

Parser.php.patch

Authored By
bzimport
Nov 21 2014, 10:01 PM
Size
723 B
Referenced Files
None
Subscribers
None

Parser.php.patch

Index: parser/Parser.php
===================================================================
--- parser/Parser.php (revision 102411)
+++ parser/Parser.php (working copy)
@@ -2834,12 +2834,10 @@
global $wgLanguageCode;
return $wgLanguageCode;
default:
- $ret = null;
- if ( wfRunHooks( 'ParserGetVariableValueSwitch', array( &$this, &$this->mVarCache, &$index, &$ret, &$frame ) ) ) {
- return $ret;
- } else {
- return null;
- }
+ // allow extensions to register variables:
+ $ret = null; // null implies no variable found
+ wfRunHooks( 'ParserGetVariableValueSwitch', array( &$this, &$this->mVarCache, &$index, &$ret, &$frame ) );
+ return $ret;
}
if ( $index ) {

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4155
Default Alt Text
Parser.php.patch (723 B)

Event Timeline