Author: fil@rezo.net
Date: Tue Aug 15 17:35:59 2006
New Revision: 4542
Log:
ne pas invoquer une commande tidy vide (utile pour spip.net)
Modified:
_plugins_/_affichage_/tidy/inc/tidy.php
Modified: _plugins_/_affichage_/tidy/inc/tidy.php
--- _plugins_/_affichage_/tidy/inc/tidy.php (original)
+++ _plugins_/_affichage_/tidy/inc/tidy.php Tue Aug 15 17:35:59 2006
@@ -100,6 +100,11 @@
// en ligne de commande
// (pour les sites qui n'ont pas tidyPHP)
+ if (!_TIDY_COMMAND) {
+ $GLOBALS['xhtml'] = false;
+ return $buffer;
+ }
+
list($buffer, $les_echap) = echappe_xhtml($buffer); # math et textarea
$cache = sous_repertoire(_DIR_CACHE,'tidy');