From 88a864d7cfafaf4e971b73da4f6727d8f72b7574 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Thu, 19 Jan 2006 17:22:03 +0000
Subject: [PATCH] Forcer tidy dans la nouvelle API (Izo+Fil)

---
 ecrire/inc_tidy.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ecrire/inc_tidy.php b/ecrire/inc_tidy.php
index fe2bb042b0..6a2a4170e7 100644
--- a/ecrire/inc_tidy.php
+++ b/ecrire/inc_tidy.php
@@ -11,9 +11,8 @@
 \***************************************************************************/
 
 
-//
-if (!defined("_ECRIRE_INC_VERSION")) return;
 
+if (!defined("_ECRIRE_INC_VERSION")) return;
 
 function version_tidy() {
 	static $version = -1;
@@ -44,8 +43,9 @@ function echappe_xhtml ($letexte) { // oui, c'est dingue... on echappe le mathml
 	return array($letexte, $les_echap);
 }
 
+$GLOBALS['xhtml'] = 'tidy'; # se raccrocher aux brances de la nouvelle API
 
-function xhtml($buffer) {
+function tidy($buffer) {
 	$buffer = traite_xhtml($buffer);
 
 /** ici commence la petite usine a gaz des traitements d'erreurs de tidy **/
-- 
GitLab