r58062 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58061‎ | r58062 | r58063 >
Date:19:08, 23 October 2009
Author:skizzerz
Status:deferred
Tags:
Comment:
* bugfix so disabling functions actually works properly
Modified paths:
  • /trunk/extensions/RegexFunctions/RegexFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RegexFunctions/RegexFunctions.php
@@ -17,7 +17,7 @@
1818 'name' => 'RegexFunctions',
1919 'author' => 'Ryan Schmidt',
2020 'url' => 'http://www.mediawiki.org/wiki/Extension:RegexFunctions',
21 - 'version' => '1.4',
 21+ 'version' => '1.4.1',
2222 'description' => 'Regular Expression parser functions',
2323 'descriptionmsg' => 'regexfunctions-desc',
2424 );
@@ -81,7 +81,7 @@
8282
8383 function rsplit ( &$parser, $string = '', &$pattern = '', $piece = 0 ) {
8484 global $wgRegexFunctionsPerPage, $wgRegexFunctionsAllowModifiers, $wgRegexFunctionsLimit, $wgRegexFunctionsDisable;
85 - if(in_array('rmatch', $wgRegexFunctionsDisable))
 85+ if(in_array('rsplit', $wgRegexFunctionsDisable))
8686 return;
8787 $this->num++;
8888 if($this->num > $wgRegexFunctionsPerPage)
@@ -102,7 +102,7 @@
103103
104104 function rreplace ( &$parser, $string = '', &$pattern = '', &$replace = '' ) {
105105 global $wgRegexFunctionsPerPage, $wgRegexFunctionsAllowModifiers, $wgRegexFunctionsAllowE, $wgRegexFunctionsLimit, $wgRegexFunctionsDisable;
106 - if(in_array('rmatch', $wgRegexFunctionsDisable))
 106+ if(in_array('rreplace', $wgRegexFunctionsDisable))
107107 return;
108108 $this->num++;
109109 if($this->num > $wgRegexFunctionsPerPage)

Status & tagging log