alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[ljcom] r10470: LJSUP-8474: Userhead as Favicon

Committer: afedorov
LJSUP-8474: Userhead as Favicon

U   trunk/cgi-bin/LJ/Hooks/S2Styles.pm
Modified: trunk/cgi-bin/LJ/Hooks/S2Styles.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/S2Styles.pm	2011-05-04 07:33:36 UTC (rev 10469)
+++ trunk/cgi-bin/LJ/Hooks/S2Styles.pm	2011-05-04 08:08:53 UTC (rev 10470)
@@ -6,9 +6,9 @@
 LJ::register_hook('s2_head_content_extra', sub {
     my ($str_ref, $u, $r) = @_;
     $$str_ref .= expresslane_html_comment($u);
-    $$str_ref .= qq{<link rel="shortcut icon" type="image/x-icon" href="$LJ::IMGPREFIX/userinfo.ico">\n};
     my $journal = LJ::get_active_journal();
     if ($journal && $journal->is_person) {
+        $$str_ref .= qq{<link rel="shortcut icon" type="image/x-icon" href="$LJ::IMGPREFIX/userinfo.ico">\n};
         my ($userhead) = $journal->userhead;
         $userhead = $LJ::IMGPREFIX . "/" . $userhead 
             unless $userhead =~ m|^http://|;

Tags: ljcom, pm, red_alf
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