fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-09-26 08:10 am

[dw-free] Add date last posted to Expired Accounts

[commit: http://hg.dwscoalition.org/dw-free/rev/803864aec0f8]

http://bugs.dwscoalition.org/show_bug.cgi?id=3880

Always print out the last updated data.

Patch by [personal profile] kareila.

Files modified:
  • htdocs/shop/gifts.bml
--------------------------------------------------------------------------------
diff -r 55485520d8e9 -r 803864aec0f8 htdocs/shop/gifts.bml
--- a/htdocs/shop/gifts.bml	Mon Sep 26 16:06:26 2011 +0800
+++ b/htdocs/shop/gifts.bml	Mon Sep 26 16:10:16 2011 +0800
@@ -36,7 +36,7 @@
     foreach my $target ( values %$circle ) {
 
         if ( ( $target->is_person || $target->is_community ) && $target->is_visible ) {
-            my $paidstatus = DW::Pay::get_paid_status( $target );   
+            my $paidstatus = DW::Pay::get_paid_status( $target );
 
             # account was never paid if it has no paidstatus row:
             push @free, $target unless defined $paidstatus;
@@ -78,7 +78,7 @@
         my $ret = '';
 
         $ret .= "<li>" . $person->ljuser_display . ": " . $person->name_html;
-        $ret .= ", " . $person->last_updated if $opts{last_updated};
+        $ret .= ", " . $person->last_updated;
 
         unless ( $opts{no_paid_time} ) {
             $ret .= " [<a href='" . $person->gift_url . "'>";
@@ -104,7 +104,7 @@
     # sort into two lists depending on whether it's a personal or community account
     my ( $freeusers, $freecommunities ) = ( '', '' );
     foreach my $person ( @free ) {
-        my $linked = $list_item->( $person, last_updated => 1 );
+        my $linked = $list_item->( $person );
         if ( $person->is_personal ) {
             $freeusers .= $linked;
         } else {
--------------------------------------------------------------------------------