Committer: akanashin
LJSUP-12699: Notification promo should be hidden in shop for some countriesU 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');