juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r10021: LJSUP-7445 Try & buy

Committer: iaskarov
LJSUP-7445 Try & buy
U   trunk/htdocs/manage/account/index.bml
Modified: trunk/htdocs/manage/account/index.bml
===================================================================
--- trunk/htdocs/manage/account/index.bml	2011-02-10 14:31:55 UTC (rev 10020)
+++ trunk/htdocs/manage/account/index.bml	2011-02-11 05:27:22 UTC (rev 10021)
@@ -4,6 +4,7 @@
     use vars qw(%GET %POST $title $body);
 
     use LJ::Sponsored::Ban;
+    use LJ::Widget::Trynbuy;
 
     BML::set_language_scope('/manage/payments/index.bml');
     LJ::set_active_crumb('paidacctstatus3');
@@ -44,7 +45,10 @@
                 if $u->prop('journal_box_placement') eq '';
             return BML::redirect( "$LJ::SITEROOT/manage/account/adsettings.bml?changelevel=1" );
         } elsif ($POST{acct_level} eq "trynbuy") {
+            $POST{'Widget[Trynbuy]_acct_level'} = $POST{acct_level};
+            $POST{'Widget[Trynbuy]_account'} = $u->userid; 
             my %res = LJ::Widget->handle_post(\%POST, qw(Trynbuy));
+
             BML::redirect("/free-trial/congratulations.bml") if (%res and $res{activated});
         } elsif ($POST{cancel_sponsorship}) {
             if (!$u->is_sponsored) {

Tags: bml, juks, ljcom
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