r114373 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114372‎ | r114373 | r114374 >
Date:16:17, 21 March 2012
Author:skizzerz
Status:new
Tags:
Comment:
* Fix pass-by-reference error mentioned on talk page, bump version to 1.4.2
Modified paths:
  • /trunk/extensions/RegexFunctions/RegexFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RegexFunctions/RegexFunctions.php
@@ -5,7 +5,7 @@
66 * @file
77 * @ingroup Extensions
88 * @author Ryan Schmidt
9 - * @version 1.4.1
 9+ * @version 1.4.2
1010 * @license http://en.wikipedia.org/wiki/Public_domain Public domain
1111 * @link http://www.mediawiki.org/wiki/Extension:RegexFunctions Documentation
1212 */
@@ -20,7 +20,7 @@
2121 'path' => __FILE__,
2222 'name' => 'RegexFunctions',
2323 'author' => 'Ryan Schmidt',
24 - 'version' => '1.4.1',
 24+ 'version' => '1.4.2',
2525 'descriptionmsg' => 'regexfunctions-desc',
2626 'url' => 'https://www.mediawiki.org/wiki/Extension:RegexFunctions',
2727 );
@@ -146,7 +146,7 @@
147147 return $res[$p];
148148 }
149149
150 - public static function rreplace( &$parser, $string = '', $pattern = '', &$replace = '' ) {
 150+ public static function rreplace( &$parser, $string = '', $pattern = '', $replace = '' ) {
151151 global $wgRegexFunctionsPerPage, $wgRegexFunctionsAllowModifiers, $wgRegexFunctionsAllowE, $wgRegexFunctionsLimit, $wgRegexFunctionsDisable;
152152 if( in_array( 'rreplace', $wgRegexFunctionsDisable ) ) {
153153 return;

Status & tagging log