diff --git a/ecrire/inc_aide_index.php b/ecrire/inc_aide_index.php index 9ace998392c39a2a90b383f0624b770a3ac7d2b7..864f28d4d1f92ddd8decf0e245f27f9adda64391 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);