From 406d6e525728bf44b1c391ccd2a794a586518be1 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 6 Jan 2006 05:52:50 +0000 Subject: [PATCH] Fixed w3c error output git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2420 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/main.php | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/html/main.php b/html/main.php index c7e9e1d3f..33f0c900a 100644 --- a/html/main.php +++ b/html/main.php @@ -301,32 +301,15 @@ if ($error_collector != ""){ } $display= $header.$smarty->fetch(get_template_path('framework.tpl')); -/*if (isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->data['MAIN']['W3CTEST'])) { - $tidy = new tidy(); - $config = array('indent' => TRUE, - 'output-xhtml' => TRUE, - 'wrap' => 200); - $display = tidy_parse_string($display, $config, 'UTF8'); - tidy_clean_repair($display); - $cnt = (tidy_error_count($display))+(tidy_warning_count($display)); - if($cnt != 0){ - echo "
\"W3C\" "._("Generating this page caused the W3C conformance checker to raise some errors!")."
"; - } - tidy_clean_repair($display); -} -*/ - if ((isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->data['MAIN']['W3CTEST']))&&(!empty($display))&&(is_callable("tidy_parse_string"))) { tidy_parse_string(utf8_decode($display)); $err = nl2br(htmlentities(tidy_get_error_buffer())); if($err){ echo "
\"W3C\" "._("Generating this page caused the W3C conformance checker to raise some errors!")."
"; } - echo $err.""; tidy_clean_repair($display); } -- 2.30.2