From 4a5b8eaea2416e1ce48f6253499ffae3b4967884 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 24 Jun 2005 10:04:52 +0000 Subject: [PATCH] Unified Error message display git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@843 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/main.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/main.php b/html/main.php index 492b3478c..8743d378c 100644 --- a/html/main.php +++ b/html/main.php @@ -281,8 +281,6 @@ $display= $header.$smarty->fetch(get_template_path('framework.tpl')); if (isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->data['MAIN']['W3CTEST'])) { /* Use PHP tidy for debugging */ - // Specify configuration - $tidy = new tidy(); $config = array('indent' => TRUE, 'output-xhtml' => TRUE, @@ -291,7 +289,9 @@ if (isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->da tidy_clean_repair($display); $cnt = (tidy_error_count($display))+(tidy_warning_count($display)); if($cnt != 0){ - echo "
".nl2br(htmlentities($display->errorBuffer))."
"; + echo "
\"\" "._("Generating this page caused the W3C conformance checker to raise some errors!")."
"; } tidy_clean_repair($display); } -- 2.30.2