Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r12464: LJSV-2081 (manage/files shows incorrect ...

Committer: ailyin
LJSV-2081 (manage/files shows incorrect data)
U   trunk/htdocs/manage/files.bml
U   trunk/htdocs/manage/files.bml.text.local
Modified: trunk/htdocs/manage/files.bml
===================================================================
--- trunk/htdocs/manage/files.bml	2012-08-14 20:42:46 UTC (rev 12463)
+++ trunk/htdocs/manage/files.bml	2012-08-15 09:05:04 UTC (rev 12464)
@@ -5,6 +5,7 @@
 {
     use strict;
     use LJ::TimeUtil;
+    use LJ::Pics;
 
     use vars qw(%GET %POST);
 
@@ -496,7 +497,7 @@
             {
                 my $ret;
 
-                my $pp_bytes = LJ::Blob::get_disk_usage($u, 'fotobilder');
+                my $pp_bytes = LJ::Pics->get_occupied_space($u);
                 my $pp_display = $size->($pp_bytes);
 
                 my $max_size = LJ::get_cap($u, "disk_quota") * $shift{MiB};
@@ -520,7 +521,8 @@
                     $ret .= " $ML{'.of.his.total'}) <br />";
                 } else {
                     $ret .= " $ML{'.of.your.total'}) <br />";
-                    $ret .= BML::ml('.please.visit', {"ahref"=>"<a href='$LJ::FB_SITEROOT'>$LJ::FB_DOMAIN</a>"});
+                    $ret .= LJ::Lang::ml( '.photo.hosting.manage', {
+                        "manage_url" => $u->journal_base . '/pics/catalog' } );
                 }
 
                 $ret .= '</td></tr>';

Modified: trunk/htdocs/manage/files.bml.text.local
===================================================================
--- trunk/htdocs/manage/files.bml.text.local	2012-08-14 20:42:46 UTC (rev 12463)
+++ trunk/htdocs/manage/files.bml.text.local	2012-08-15 09:05:04 UTC (rev 12464)
@@ -41,6 +41,8 @@
 .photo.hosting|staleness=1
 .photo.hosting=Photo Hosting
 
+.photo.hosting.manage=Please visit <a href="[[manage_url]]">your albums</a> to manage your images.
+
 .please.visit|staleness=1
 .please.visit=Please visit [[ahref]] to manage your images.
 

Tags: ailyin, andy, bml, ljcom, local
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