W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2009

validator/httpd/cgi-bin check,1.647,1.648

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 16 Feb 2009 14:11:44 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LZ4CG-0003UB-Um@lionel-hutz.w3.org>
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv13144/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Patch to output badge/icon sample with RDFa when appropriate. 
Courtesy of Toby A Inkster.



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.647
retrieving revision 1.648
diff -u -d -r1.647 -r1.648
--- check	13 Feb 2009 21:04:15 -0000	1.647
+++ check	16 Feb 2009 14:11:42 -0000	1.648
@@ -1424,6 +1424,13 @@
       $T->param(have_alt_badge => TRUE);
       }
 
+      if (exists $CFG->{Types}->{$File->{DOCTYPE}}->{Badge}->{'RDFa'}) {
+        $T->param(have_badge_rdfa => TRUE);
+        $T->param(badge_rdfa => $CFG->{Types}->{$File->{DOCTYPE}}->{Badge}->{'RDFa'});
+      } else {
+        $T->param(have_badge_rdfa => FALSE);
+      }
+      
       $T->param(badge_alt  => $cfg->{Badge}->{Alt});
       $T->param(badge_h    => $cfg->{Badge}->{Height});
       $T->param(badge_w    => $cfg->{Badge}->{Width});
Received on Monday, 16 February 2009 14:11:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:08 GMT