From: cajus Date: Fri, 24 Jun 2005 10:04:52 +0000 (+0000) Subject: Unified Error message display X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4a5b8eaea2416e1ce48f6253499ffae3b4967884;p=gosa.git Unified Error message display git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@843 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); }