From a8e55fb632ce13a6e13d20db2055bf043522b3ae Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Sat, 21 Jan 2006 18:28:42 +0000 Subject: [PATCH] Corrige le bug #36 (images TeX dans l'aide en ligne) --- ecrire/inc_aide_index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ecrire/inc_aide_index.php b/ecrire/inc_aide_index.php index 9ace998392..864f28d4d1 100644 --- a/ecrire/inc_aide_index.php +++ b/ecrire/inc_aide_index.php @@ -233,7 +233,10 @@ function help_img($regs) { list ($cache, $rep, $lang, $file, $ext) = $regs; header("Content-Type: image/$ext"); - if (@file_exists($img = _DIR_CACHE . 'aide-'.$cache)) { + if ($rep=="IMG" AND $lang=="cache" + AND @file_exists($img_tex = _DIR_IMG.'cache-TeX/'.preg_replace(',^TeX-,', '', $file))) { + readfile($img_tex); + } else if (@file_exists($img = _DIR_CACHE . 'aide-'.$cache)) { readfile($img); } else if (@file_exists($img = _DIR_RACINE . 'AIDE/aide-'.$cache)) { readfile($img); -- GitLab