r81426 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81425‎ | r81426 | r81427 >
Date:22:30, 2 February 2011
Author:sean_colombo
Status:deferred
Tags:
Comment:
Made 3rd, 4th, 5th parameters of Negref's callback into optional parameters to prevent flooding logs with PHP warnings when users forget to put in parameters.
Modified paths:
  • /trunk/extensions/Negref/Negref.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Negref/Negref.php
@@ -41,7 +41,7 @@
4242 return true;
4343 }
4444
45 -function efNegrefHook( $parser, $input, $replaceData, $replaceRef, $pattern ) {
 45+function efNegrefHook( $parser, $input, $replaceData='', $replaceRef='', $pattern='' ) {
4646 $data = $input;
4747 $ref = '';
4848

Status & tagging log