r68269 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68268‎ | r68269 | r68270 >
Date:12:11, 19 June 2010
Author:jdpond
Status:deferred
Tags:
Comment:
Fixed indentation
Modified paths:
  • /trunk/extensions/NewUserNotif/NewUserNotif.php (modified) (history)

Diff [purge]

Index: trunk/extensions/NewUserNotif/NewUserNotif.php
@@ -1,6 +1,6 @@
22 <?php
33 if ( ! defined( 'MEDIAWIKI' ) )
4 - die();
 4+ die();
55
66 /**
77 * Extension to provide customisable email notification of new user creation
@@ -13,7 +13,7 @@
1414 */
1515
1616 $wgExtensionCredits['other'][] = array(
17 - 'path' => __FILE__,
 17+ 'path' => __FILE__,
1818 'name' => 'New User Email Notification',
1919 'version' => '1.5.2',
2020 'author' => 'Rob Church',
@@ -41,25 +41,25 @@
4242 */
4343 $wgNewUserNotifEmailTargets = array();
4444 /**
45 - * These are the parameters that will be passed into MediaWiki:newusernotifbody
46 - * Can use anthing available as part of $this, $user (created user object), $recipient (target),
 45+ * These are the parameters that will be passed into MediaWiki:newusernotifbody
 46+ * Can use anthing available as part of $this, $user (created user object), $recipient (target),
4747 * or from globals $wfContLang, $wgSitename
4848 */
4949 $wgNewUserNotifSenderParam = array(
50 - '$recipient', // $1 Recipient (of notification message)
51 - '$user->getname()', // $2 User Name
52 - '$wgSitename', // $3 Site Name
53 - '$wgContLang->timeAndDate( wfTimestampNow() )', // $4 Time and date stamp
54 - '$wgContLang->date( wfTimestampNow() )', // $5 Date Stamp
55 - '$wgContLang->time( wfTimestampNow() )', // $6 Time Stamp
56 - );
 50+ '$recipient', // $1 Recipient (of notification message)
 51+ '$user->getname()', // $2 User Name
 52+ '$wgSitename', // $3 Site Name
 53+ '$wgContLang->timeAndDate( wfTimestampNow() )', // $4 Time and date stamp
 54+ '$wgContLang->date( wfTimestampNow() )', // $5 Date Stamp
 55+ '$wgContLang->time( wfTimestampNow() )', // $6 Time Stamp
 56+);
5757 /**
5858 * These are the parameters that will be passed into MediaWiki:Newusernotifsubj (for use in the "subject:" line)
5959 * parameters defs have same options as $wgNewUserNotifSenderParam
6060 */
6161 $wgNewUserNotifSenderSubjParam = array(
62 - '$wgSitename', // $1 Site Name
63 - );
 62+ '$wgSitename', // $1 Site Name
 63+);
6464
6565 /**
6666 * Extension setup

Status & tagging log