juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r10047: LJSUP-7445 Try & buy

Committer: iaskarov
LJSUP-7445 Try & buy
U   trunk/cgi-bin/LJ/Widget/HomepageEN.pm
U   trunk/cgi-bin/LJ/Widget/HomepageRU.pm
Modified: trunk/cgi-bin/LJ/Widget/HomepageEN.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/HomepageEN.pm	2011-02-16 03:55:45 UTC (rev 10046)
+++ trunk/cgi-bin/LJ/Widget/HomepageEN.pm	2011-02-16 04:09:00 UTC (rev 10047)
@@ -156,7 +156,7 @@
     $result{widget_publicstats} = LJ::Widget::PublicStats->render( show_latest_posts => 0, short_numbers => 1 );
     
     ## Widget Trynbuy
-    if(!$remote || !$remote->get_cap('paid') && !LJ::TryNBuy->active($remote)) {
+    if(LJ::TryNBuy->can_enable($remote)) {
         $result{widget_trynbuy} = LJ::Widget::Trynbuy->render(stage => 'simple');
     }
     

Modified: trunk/cgi-bin/LJ/Widget/HomepageRU.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/HomepageRU.pm	2011-02-16 03:55:45 UTC (rev 10046)
+++ trunk/cgi-bin/LJ/Widget/HomepageRU.pm	2011-02-16 04:09:00 UTC (rev 10047)
@@ -129,7 +129,7 @@
     $result{widget_settingproddisplay} = LJ::Widget::SettingProdDisplay->render;
     
     ## Widget Trynbuy
-    if(!$remote || !$remote->get_cap('paid') && !LJ::TryNBuy->active($remote)) {
+    if(LJ::TryNBuy->can_enable($remote)) {
         $result{widget_trynbuy} = LJ::Widget::Trynbuy->render(stage => 'simple');
     }
 

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