журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[ljcom] r12884: LJSUP-14234: Implement server part for s...

Committer: nnikulochkina
LJSUP-14234: Implement server part for shop payment pages
U   trunk/cgi-bin/LJ/Widget/Shop/Checkout.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/Checkout.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/Checkout.pm	2012-11-13 09:01:10 UTC (rev 12883)
+++ trunk/cgi-bin/LJ/Widget/Shop/Checkout.pm	2012-11-13 13:09:11 UTC (rev 12884)
@@ -85,6 +85,8 @@
 
     my $method_params = $method_class->get_page_params($cart);
 
+    LJ::need_res ('stc/widgets/dengionline.css') if LJ::is_enabled('dengionline');
+
     # arrayref for 'table_params' and 'method_params' used as namespace instrument
     return {
         table_params => [ $table_params ],
@@ -129,6 +131,9 @@
     if ($@) {
         $self->raise_errors($@);
     }
+    
+    return if LJ::Request->redirected;
+
     LJ::Request->redirect($LJ::SITEROOT . '/shop/thankyou.bml?cart=' . $cart->get_cart_as_string);
 }
 

Tags: ljcom, nikulochkina, nnikulochkina, pm
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