holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r23396: LJSUP-14354: Divide social connections i...

Committer: akanashin
LJSUP-14354: Divide social connections in Profile into blocks
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-11-29 12:58:13 UTC (rev 23395)
+++ trunk/cgi-bin/LJ/User.pm	2012-11-29 13:23:29 UTC (rev 23396)
@@ -1747,10 +1747,10 @@
     if ($opts{'format'}) {
         if ($u->can_show_full_bday && $day > 0 && $mon > 0 && $year > 0) {
             $mon = LJ::Lang::ml(LJ::Lang::month_long_genitive_langcode($mon)); 
-            $bday_string = sprintf("%02d %s %04d", $day, $mon, $year);
+            $bday_string = sprintf("%2d %s %04d", $day, $mon, $year);
         } elsif ($u->can_show_bday && $day > 0 && $mon > 0) {
             $mon = LJ::Lang::ml(LJ::Lang::month_long_genitive_langcode($mon)); 
-            $bday_string = sprintf("%02d %s", $day, $mon);
+            $bday_string = sprintf("%2d %s", $day, $mon);
         } elsif ($u->can_show_bday_year && $year > 0) {
             $bday_string = $year;
         }
@@ -2108,13 +2108,13 @@
             $url .= "&mode=full" if $opts{full};
         } else {
             $url = "$LJ::SITEROOT/profile";
-            $url .= "/friendlist" if $opts{'friendlist'};
+            $url .= "/".$opts{'friends_page'} if $opts{'friends_page'};
             $url .= "?userid=$u->{'userid'}&t=I";
             $url .= "&mode=full" if $opts{full};
         }
     } else {
         $url = $u->journal_base . "/profile";
-        $url .= "/friendlist" if $opts{'friendlist'};
+        $url .= "/".$opts{'friends_page'} if $opts{'friends_page'};
         $url .= "?mode=full" if $opts{full};
     }
     return $url;

Tags: akanashin, holyandrew, livejournal, 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