juks (juks) wrote in changelog,
juks
juks
changelog

[livejournal] r18311: LJSUP-7445 Try & buy

Committer: iaskarov
LJSUP-7445 Try & buy
U   trunk/htdocs/update.bml
Modified: trunk/htdocs/update.bml
===================================================================
--- trunk/htdocs/update.bml	2011-02-15 16:34:31 UTC (rev 18310)
+++ trunk/htdocs/update.bml	2011-02-16 03:25:26 UTC (rev 18311)
@@ -47,9 +47,7 @@
     my $remote = LJ::get_remote();
     
     # Should we show try and buy
-    my $show_trynbuy = !$remote
-                        || !(!LJ::TryNBuy->active($remote) && $remote->get_cap('paid')) && !LJ::TryNBuy->already_used($remote)
-                        || !LJ::TryNBuy->active($remote) && !LJ::TryNBuy->already_used($remote);
+    my $show_trynbuy = LJ::TryNBuy->can_enable($remote);
 
     # Errors that are unlikely to change between starting
     # to compose an entry and submitting it.

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