r49042 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49041‎ | r49042 | r49043 >
Date:19:09, 30 March 2009
Author:straussd
Status:deferred
Tags:
Comment:
Reapply local changes.
Modified paths:
  • /civicrm/trunk/sites/all/modules/civicrm/CRM/Mailing/BAO/Mailing.php (modified) (history)
  • /civicrm/trunk/sites/all/modules/civicrm/CRM/Mailing/DAO/Component.php (modified) (history)
  • /civicrm/trunk/sites/all/modules/civicrm/CRM/Utils/Token.php (modified) (history)
  • /civicrm/trunk/sites/all/modules/civicrm/templates/CRM/Mailing/Page/Optout.tpl (modified) (history)

Diff [purge]

Index: civicrm/trunk/sites/all/modules/civicrm/CRM/Utils/Token.php
@@ -88,14 +88,8 @@
8989 public static function requiredTokens(&$str)
9090 {
9191 if (self::$_requiredTokens == null) {
92 - self::$_requiredTokens = array (
93 - 'domain.address' => ts("Displays your organization's postal address."),
94 - 'action.optOut' =>
95 - array(
96 - 'action.optOut' => ts("Creates a link for recipients to opt out of receiving emails from your organization."),
97 - 'action.optOutUrl' => ts("Creates a link for recipients to opt out of receiving emails from your organization."),
98 - ),
99 - );
 92+ // Make all tokens optional.
 93+ self::$_requiredTokens = array();
10094 }
10195
10296 $missing = array( );
Index: civicrm/trunk/sites/all/modules/civicrm/CRM/Mailing/BAO/Mailing.php
@@ -1334,7 +1334,7 @@
13351335 'footer' => ts('Footer'),
13361336 'reply' => ts('Reply'),
13371337 'unsubscribe' => ts('Unsubscribe'),
1338 - 'optout' => ts('Opt-Out')
 1338+ 'optout' => ts('Unsubscribe')
13391339 );
13401340 foreach(array_keys($components) as $type) {
13411341 $query[] = "SELECT {$t['component']}.name as name,
Index: civicrm/trunk/sites/all/modules/civicrm/CRM/Mailing/DAO/Component.php
@@ -292,7 +292,7 @@
293293 'Subscribe' => ts('Subscribe') ,
294294 'Welcome' => ts('Welcome') ,
295295 'Unsubscribe' => ts('Unsubscribe') ,
296 - 'OptOut' => ts('OptOut') ,
 296+ 'OptOut' => ts('Unsubscribe') ,
297297 'Reply' => ts('Reply') ,
298298 'Resubscribe' => ts('Resubscribe') ,
299299 ) ,
Index: civicrm/trunk/sites/all/modules/civicrm/templates/CRM/Mailing/Page/Optout.tpl
@@ -2,19 +2,16 @@
33 <div class="messages status">
44 <dl>
55 <dt><img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}" /></dt>
6 - <dd><label>{$display_name} ({$email})</label> has been successfully opted out.</dd>
 6+ <dd><label>{$display_name} ({$email})</label> has been successfully unsubscribed.</dd>
77 </dl>
88 </div>
99 {else}
1010 <div>
1111 <form action="{$confirmURL}" method="post">
12 -{ts 1=$display_name 2=$email}Are you sure you want to optout: %1 (%2){/ts}
 12+<div style="font-size: 150%; width: 400px;">{ts 1=$display_name 2=$email}Are you sure you want to unsubscribe <em>%2</em> from receiving future e-mail updates from the Wikimedia Foundation?{/ts}</div>
1313 <br/>
14 -<center>
15 -<input type="submit" name="_qf_optout_next" value="{ts}Optout{/ts}" class="form-submit" />
16 -&nbsp;&nbsp;&nbsp;
17 -<input type="submit" name="_qf_optout_cancel" value="{ts}Cancel{/ts}" class="form-submit" />
18 -</center>
 14+<br/>
 15+<input type="submit" name="_qf_optout_next" value="{ts}Yes, please remove me{/ts}" class="form-submit" />
1916 </form>
2017 </div>
2118 {/if}
\ No newline at end of file

Status & tagging log