r47691 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47690‎ | r47691 | r47692 >
Date:23:10, 22 February 2009
Author:minuteelectron
Status:deferred
Tags:
Comment:
* Babel: Change callback so it works on older versions (5.2.0 and lower) of PHP, reported by GerardM.
Modified paths:
  • /trunk/extensions/Babel/Babel.php (modified) (history)
  • /trunk/extensions/Babel/BabelStatic.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Babel/BabelStatic.class.php
@@ -17,7 +17,7 @@
1818
1919 // Register the hook within the parser object.
2020 global $wgParser;
21 - $wgParser->setFunctionHook( 'babel', 'BabelStatic::Render' );
 21+ $wgParser->setFunctionHook( 'babel', array( 'BabelStatic', 'Render' ) );
2222
2323 // Return true to ensure processing is continued and an exception is not
2424 // generated.
@@ -75,4 +75,4 @@
7676
7777 }
7878
79 -}
\ No newline at end of file
 79+}
Index: trunk/extensions/Babel/Babel.php
@@ -21,7 +21,7 @@
2222 // Register extension credits.
2323 $wgExtensionCredits[ 'parserhook' ][] = array(
2424 'name' => 'Babel',
25 - 'version' => '1.2.1',
 25+ 'version' => '1.2.2',
2626 'author' => 'Robert Leverington',
2727 'url' => 'http://www.mediawiki.org/wiki/Extension:Babel',
2828 'description' => 'Adds a parser function to allow automated generation of a babel userbox column with the ability to include custom templates.',

Status & tagging log