validator/httpd/cgi-bin check,1.534,1.535

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv11348/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Using local images for display, when available.



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.534
retrieving revision 1.535
diff -u -d -r1.534 -r1.535
--- check	29 Jun 2007 00:37:37 -0000	1.534
+++ check	5 Jul 2007 07:10:01 -0000	1.535
@@ -1113,10 +1113,18 @@
       my $cfg = $CFG->{Types}->{$File->{DOCTYPE}};
       $T->param(have_badge => TRUE);
       $T->param(badge_uri  => $cfg->{Badge}->{URI});
+      if (exists $CFG->{Types}->{$File->{DOCTYPE}}->{Badge}->{'Local URI'}) {
+              $T->param(local_badge_uri  => $cfg->{Badge}->{'Local URI'});
+              $T->param(have_local_badge => TRUE);
+      }
       if (exists $CFG->{Types}->{$File->{DOCTYPE}}->{Badge}->{'ALT URI'}) {
       $T->param(badge_alt_uri  => $cfg->{Badge}->{'ALT URI'});
+        if (exists $CFG->{Types}->{$File->{DOCTYPE}}->{Badge}->{'Local ALT URI'}) {
+          $T->param(local_alt_badge_uri  => $cfg->{Badge}->{'Local ALT URI'});
+        }
       $T->param(have_alt_badge => TRUE);
       }
+      
       $T->param(badge_alt  => $cfg->{Badge}->{Alt});
       $T->param(badge_h    => $cfg->{Badge}->{Height});
       $T->param(badge_w    => $cfg->{Badge}->{Width});

Received on Thursday, 5 July 2007 07:10:09 UTC