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

[livejournal] r17223: LJSUP-6640 (Title code does not work on ...

Committer: ailyin
LJSUP-6640 (Title code does not work on beta)
LJSUP-6666 (disappeared * (notes) after the username)

U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2010-08-30 07:54:51 UTC (rev 17222)
+++ trunk/cgi-bin/LJ/User.pm	2010-08-30 08:07:28 UTC (rev 17223)
@@ -6924,9 +6924,9 @@
         }
     }
 
-    my $user_alias       = LJ::ljuser_alias($user);
+    my $user_alias       = LJ::ljuser_alias($username);
     my $side_alias       = $opts->{'side_alias'};
-    my $show_alias_popup = $user_alias and not $side_alias;
+    my $show_alias_popup = $user_alias && !$side_alias;
     my $target           = $opts->{'target'};
     my $link_color       = $opts->{'link_color'};
 
@@ -6970,6 +6970,9 @@
     my $link_tag_extra = join('', @link_tag_extra);
 
     ### fix $journal_name
+    if ($opts->{'title'}) {
+        $journal_name = $opts->{'title'};
+    }
     if (!exists $opts->{'bold'} || $opts->{'bold'} != 0) {
         $journal_name = "<b>$journal_name</b>";
     }

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