The nouserpic image on SSL and non-SSL pages in dw-nonfree site scheme.

        Patch by kareila. 

diffs (40 lines):

diff -r f4867786bd43 -r 9ff94c4274b0 cgi-bin/bml/scheme/tropo-purple.look
--- a/cgi-bin/bml/scheme/tropo-purple.look      Mon Jul 12 16:30:00 2010 +0800
+++ b/cgi-bin/bml/scheme/tropo-purple.look      Mon Jul 12 17:56:14 2010 +0800
@@ -67,7 +67,6 @@ accountlinks<=
 accountlinks<=
 <?_code
 {
-    my $imgprefix = $LJ::IS_SSL ? $LJ::SSLIMGPREFIX : $LJ::IMGPREFIX;
     my $remote = LJ::get_remote();
     my $ret;
 
@@ -82,7 +81,7 @@ accountlinks<=
             my $wh = $userpic->img_fixedsize( width => 80, height => 80 );
             $ret .= "<img src='" . $userpic->url . "' $wh 
alt=\"$ML{'sitescheme.accountlinks.userpic.alt'}\" />";
         } else {
-            $ret .= "<img src='$imgprefix/nouserpic.png' width='80' 
height='80' alt=\"$ML{'sitescheme.accountlinks.userpic.alt'}\" />";
+            $ret .= LJ::img( "nouserpic_sitescheme", "", { ssl => 1 } );
         }
         $ret .= "</a></div>";
         $ret .= "<div id='account-links-text'>";
diff -r f4867786bd43 -r 9ff94c4274b0 cgi-bin/bml/scheme/tropo-red.look
--- a/cgi-bin/bml/scheme/tropo-red.look Mon Jul 12 16:30:00 2010 +0800
+++ b/cgi-bin/bml/scheme/tropo-red.look Mon Jul 12 17:56:14 2010 +0800
@@ -67,7 +67,6 @@ accountlinks<=
 accountlinks<=
 <?_code
 {
-    my $imgprefix = $LJ::IS_SSL ? $LJ::SSLIMGPREFIX : $LJ::IMGPREFIX;
     my $remote = LJ::get_remote();
     my $ret;
 
@@ -82,7 +81,7 @@ accountlinks<=
             my $wh = $userpic->img_fixedsize( width => 80, height => 80 );
             $ret .= "<img src='" . $userpic->url . "' $wh 
alt=\"$ML{'sitescheme.accountlinks.userpic.alt'}\" />";
         } else {
-            $ret .= "<img src='$imgprefix/nouserpic.png' width='80' 
height='80' alt=\"$ML{'sitescheme.accountlinks.userpic.alt'}\" />";
+            $ret .= LJ::img( "nouserpic_sitescheme", "", { ssl => 1 } );
         }
         $ret .= "</a></div>";
         $ret .= "<div id='account-links-text'>";
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to