alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r19018: LJSUP-8474: Userhead as Favicon

Committer: afedorov
LJSUP-8474: Userhead as Favicon

U   trunk/cgi-bin/bml/scheme/global.look
Modified: trunk/cgi-bin/bml/scheme/global.look
===================================================================
--- trunk/cgi-bin/bml/scheme/global.look	2011-05-04 07:23:43 UTC (rev 19017)
+++ trunk/cgi-bin/bml/scheme/global.look	2011-05-04 07:32:40 UTC (rev 19018)
@@ -26,12 +26,13 @@
 
 FAVICON<=
 <?_code
+    my $ie_userhead = '<link rel="shortcut icon" type="image/x-icon" href="'.$LJ::IMGPREFIX.'/userinfo.ico">';
     my $u = LJ::get_active_journal();
-    return '' unless $u && $u->is_person;
+    return $ie_userhead unless $u && $u->is_person;
     my ($userhead) = $u->userhead;
     $userhead = $LJ::IMGPREFIX . "/" . $userhead 
         unless $userhead =~ m|^http://|;
-    return '<link rel="icon" type="image/gif" href="'.$userhead.'">';
+    return "$ie_userhead\n    " . '<link rel="icon" type="image/gif" href="'.$userhead.'">';
 _code?>
 <=FAVICON
 

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