holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12192: LJSUP-12699: Notification promo should b...

Committer: akanashin
LJSUP-12699: Notification promo should be hidden in shop for some countries
U   trunk/htdocs/shop/notificationpromo.bml
Modified: trunk/htdocs/shop/notificationpromo.bml
===================================================================
--- trunk/htdocs/shop/notificationpromo.bml	2012-06-27 18:04:26 UTC (rev 12191)
+++ trunk/htdocs/shop/notificationpromo.bml	2012-06-28 07:41:44 UTC (rev 12192)
@@ -3,8 +3,10 @@
 use strict;
 use warnings;
 
+my $remote = LJ::get_remote();
+
 return LJ::Request->redirect ($LJ::PAGE_404)
-    if $LJ::DISABLED{'notification_promo'};
+    if $LJ::DISABLED{'notificationpromo'} || !($remote && 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
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