|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53724 - website/public_html/beta/common/code
From: daniel_james_at_[hidden]
Date: 2009-06-07 12:25:56
Author: danieljames
Date: 2009-06-07 12:25:56 EDT (Sun, 07 Jun 2009)
New Revision: 53724
URL: http://svn.boost.org/trac/boost/changeset/53724
Log:
Fix some validator errors.
Text files modified:
website/public_html/beta/common/code/boost_archive.php | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Modified: website/public_html/beta/common/code/boost_archive.php
==============================================================================
--- website/public_html/beta/common/code/boost_archive.php (original)
+++ website/public_html/beta/common/code/boost_archive.php 2009-06-07 12:25:56 EDT (Sun, 07 Jun 2009)
@@ -492,6 +492,9 @@
function _content_basic()
{
+ $is_xhtml = preg_match('@<!DOCTYPE[^>]*xhtml_at_i', $text);
+ $tag_end = $is_xhtml ? '/>' : '>';
+
$text = $this->_content_html_pre();
$text = preg_split('@(</head>|<body[^>]*>)@i',$text,-1,PREG_SPLIT_DELIM_CAPTURE);
$state = 0;
@@ -499,8 +502,8 @@
print($section);
switch($state) {
case 0:
- print '<link rel="icon" href="/favicon.ico" type="image/ico" />';
- print '<link rel="stylesheet" type="text/css" href="/style/section-basic.css" />';
+ print '<link rel="icon" href="/favicon.ico" type="image/ico"'.$tag_end;
+ print '<link rel="stylesheet" type="text/css" href="/style/section-basic.css"'.$tag_end;
$state = 1;
break;
case 1:
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk