wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r9992: LJSUP-5768. Userpic Addons: downgrading ...

Committer: gprochaev
LJSUP-5768. Userpic Addons: downgrading from plus to basic has wrong error message

U   trunk/htdocs/manage/account/downgrade.bml
U   trunk/htdocs/manage/account/downgrade.bml.text.local
Modified: trunk/htdocs/manage/account/downgrade.bml
===================================================================
--- trunk/htdocs/manage/account/downgrade.bml	2011-02-03 13:44:56 UTC (rev 9991)
+++ trunk/htdocs/manage/account/downgrade.bml	2011-02-04 08:30:41 UTC (rev 9992)
@@ -38,7 +38,9 @@
     $ret .= "<div class='downgrade_warning_box'>";
     $ret .= "<p class='downgrade_warning'><img src='$LJ::IMGPREFIX/icons/warning.gif' alt=\"$ML{'.downgrade_warning_icon_alt'}\" align='absmiddle' /> $ML{'.downgrade_warning'}</p>";
     $ret .= "<p><strong>$ML{'.benefit.userpics.title'}</strong><br />";
-    $ret .= BML::ml('.benefit.userpics.text', { num => 6 }) . "</p>";
+    my %cap_opts = ();
+    my $upicmax = LJ::get_cap($remote, 'userpics', \%cap_opts);
+    $ret .= BML::ml('.benefit.userpics.text', { from => $upicmax, num => 6 }) . "</p>";
     $ret .= "<p><strong>$ML{'.benefit.photos.title'}</strong><br />";
     $ret .= "$ML{'.benefit.photos.text'}</p>";
     $ret .= "<p><strong>$ML{'.benefit.search.title'}</strong><br />";

Modified: trunk/htdocs/manage/account/downgrade.bml.text.local
===================================================================
--- trunk/htdocs/manage/account/downgrade.bml.text.local	2011-02-03 13:44:56 UTC (rev 9991)
+++ trunk/htdocs/manage/account/downgrade.bml.text.local	2011-02-04 08:30:41 UTC (rev 9992)
@@ -30,7 +30,7 @@
 .benefit.styles.title=Styles
 
 .benefit.userpics.text|staleness=1
-.benefit.userpics.text=Your limit will decrease to [[num]].
+.benefit.userpics.text=Your limit will decrease from [[from]] to [[num]].
 
 .benefit.userpics.title|staleness=1
 .benefit.userpics.title=Userpics

Tags: bml, ljcom, local, wisest-owl
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