positive info is good
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Wed, 12 Jan 2005 11:25:19 +0000 (11:25 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:29 +0000 (23:27 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-301

include/xorg/page.inc.php

index ca419e7..cd4909a 100644 (file)
@@ -129,9 +129,9 @@ class XorgPage extends DiogenesCorePage
                 exec($globals->spoolroot."/bin/devel/xhtml.validate.pl ".$this->compile_dir."/valid.html", $val);
                 foreach ($val as $h) {
                     if (preg_match("/^X-W3C-Validator-Errors: (\d+)$/", $h, $m)) {
-                        $replc = '';
+                        $replc = '<span style="color: #080;">HTML OK</span><br />';
                         if ($m[1]) {
-                            $replc .= "<span class='erreur'><a href='http://validator.w3.org/check?uri={$globals->baseurl}"
+                            $replc = "<span class='erreur'><a href='http://validator.w3.org/check?uri={$globals->baseurl}"
                                 ."/valid.html&amp;ss=1#result'>{$m[1]} ERREUR(S) !!!</a></span><br />";
                         }
                         break;