- From: Mercurial notifier <nobody@w3.org>
- Date: Thu, 05 Aug 2010 14:47:19 +0000
- To: link-checker updates <www-validator-cvs@w3.org>
changeset: 281:7f7ba04b0fdb
user: ville
date: Tue Feb 10 18:37:27 2009 +0000
files: bin/checklink
description:
Don't hardcode path to w3c.png, resolve it from Doc_URI.
diff -r 5642832d4e79 -r 7f7ba04b0fdb bin/checklink
--- a/bin/checklink Tue Feb 10 18:36:31 2009 +0000
+++ b/bin/checklink Tue Feb 10 18:37:27 2009 +0000
@@ -5,7 +5,7 @@
# (c) 1999-2009 World Wide Web Consortium
# based on Renaud Bruyeron's checklink.pl
#
-# $Id: checklink,v 4.142 2009-02-10 18:36:31 ville Exp $
+# $Id: checklink,v 4.143 2009-02-10 18:37:27 ville Exp $
#
# This program is licensed under the W3C(r) Software License:
# http://www.w3.org/Consortium/Legal/copyright-software
@@ -267,7 +267,7 @@
$PROGRAM = 'W3C-checklink';
$VERSION = '4.4';
$REVISION = sprintf('version %s (c) 1999-2009 W3C', $VERSION);
- my ($cvsver) = q$Revision: 4.142 $ =~ /(\d+[\d\.]*\.\d+)/;
+ my ($cvsver) = q$Revision: 4.143 $ =~ /(\d+[\d\.]*\.\d+)/;
$AGENT = sprintf('%s/%s [%s] %s',
$PROGRAM, $VERSION, $cvsver,
(W3C::UserAgent::USE_ROBOT_UA
@@ -2386,8 +2386,8 @@
{
my $tagline ="Check links and anchors in Web pages or full Web sites";
- printf(<<'EOF', $tagline);
-<div id="banner"><h1 id="title"><a href="http://www.w3.org/" title="W3C"><img alt="W3C" id="logo" src="http://validator.w3.org/images/w3c.png" /></a>
+ printf(<<'EOF', URI->new_abs("../images/w3c.png", $Cfg{Doc_URI}), $tagline);
+<div id="banner"><h1 id="title"><a href="http://www.w3.org/" title="W3C"><img alt="W3C" id="logo" src="%s" /></a>
<a href="checklink"><span>Link Checker</span></a></h1>
<p id="tagline">%s</p></div>
<div id="main">
Received on Thursday, 5 August 2010 14:47:26 UTC