wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r9367: LJSUP-6515

Committer: gprochaev
LJSUP-6515

U   trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm	2010-08-20 07:33:08 UTC (rev 9366)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm	2010-08-20 07:33:25 UTC (rev 9367)
@@ -35,7 +35,7 @@
     my ($self) = @_;
 
     my $remote = LJ::get_remote();
-    my $gift = ((!$remote || LJ::Request->get_param('gift')) && LJ::Request->get_param('giftto')) || 0;
+    my $gift = ((!$remote || LJ::Request->get_param('gift'))) || 0;
     my $recipient = $gift ? LJ::load_user(LJ::Request->get_param('giftto')) : undef;
 
     # [10,6,2] == foreach period, for 1 packet
@@ -58,6 +58,12 @@
         default_page        => $gift && LJ::u_equals($remote, $recipient) ? 'gift' : $gift && $recipient ? 'self' : 'gift',
         rcpt_username       => $recipient && $recipient->user,
         thispage            => "$LJ::SITEROOT/shop/userheads.bml",
+        months              => [
+                                map { {
+                                    num  => $_,
+                                    name => LJ::Lang::ml(LJ::Lang::month_long_langcode($_)),
+                                    } } (1..12)
+                               ],
         giveafter_dd        => LJ::Request->post_param('giveafter_dd') || $mday,
         giveafter_mm        => LJ::Request->post_param('giveafter_mm') || ($mon + 1),
         giveafter_yyyy      => LJ::Request->post_param('giveafter_yyyy') || ($year + 1900),

Tags: ljcom, pm, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments