r13833 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13832‎ | r13833 | r13834 >
Date:03:34, 24 April 2006
Author:brion
Status:old
Tags:
Comment:
Fix backwards-compatibility mode; parameter on hook is optional
Modified paths:
  • /trunk/extensions/Newuserlog/Newuserlog.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Newuserlog/Newuserlog.php
@@ -51,7 +51,7 @@
5252 $wgHooks['AddNewAccount'][] = 'wfNewuserlogHook';
5353 }
5454
55 -function wfNewuserlogHook( $user ) {
 55+function wfNewuserlogHook( $user=null ) {
5656 global $wgUser, $wgContLang;
5757
5858 if( is_null( $user ) ) {

Status & tagging log