holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12285: LJSUP-12961: Don't hide notification pro...

Committer: akanashin
LJSUP-12961: Don't hide notification promo in shop for non-logged users
U   trunk/cgi-bin/LJ/Widget/Shop/LeftMenu.pm
U   trunk/htdocs/shop/notificationpromo.bml
Modified: trunk/cgi-bin/LJ/Widget/Shop/LeftMenu.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/LeftMenu.pm	2012-07-13 10:23:36 UTC (rev 12284)
+++ trunk/cgi-bin/LJ/Widget/Shop/LeftMenu.pm	2012-07-13 10:55:32 UTC (rev 12285)
@@ -66,7 +66,7 @@
         } unless $LJ::DISABLED{'commercial_promo'};
     }
 
-    if ($remote && LJ::Pay::Promotion::Notifications->is_avialable_region($remote) && !$LJ::DISABLED{'notificationpromo'}) {
+    if (LJ::Pay::Promotion::Notifications->is_avialable_region($remote) && !$LJ::DISABLED{'notificationpromo'}) {
         push @$promos, {
             name => LJ::Lang::ml('/shop/index.bml.storefront.notificationpromo'),
             url => '/shop/notificationpromo.bml',

Modified: trunk/htdocs/shop/notificationpromo.bml
===================================================================
--- trunk/htdocs/shop/notificationpromo.bml	2012-07-13 10:23:36 UTC (rev 12284)
+++ trunk/htdocs/shop/notificationpromo.bml	2012-07-13 10:55:32 UTC (rev 12285)
@@ -7,7 +7,7 @@
 my $remote = LJ::get_remote();
 
 return LJ::Request->redirect ($LJ::PAGE_404)
-    if $LJ::DISABLED{'notificationpromo'} || !($remote && LJ::Pay::Promotion::Notifications->is_avialable_region($remote));
+    if $LJ::DISABLED{'notificationpromo'} || !(LJ::Pay::Promotion::Notifications->is_avialable_region($remote));
 
 if ( LJ::Request->did_post ) {
     my $action = LJ::Request->post_param('action');

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