From d978e24c81cc608e308869a2099970bb53e115a2 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 6 Aug 2006 22:42:58 +0200 Subject: GeSHi fixes This fixes a bug in GeSHi which adds an addtional newline (patch sent to upstream) and makes sure the code highlighting cache honors the purge request variable. darcs-hash:20060806204258-7ad00-56ad794b90b8ad38f62e8e4d9e430a8622636bc5.gz --- inc/parserutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/parserutils.php') diff --git a/inc/parserutils.php b/inc/parserutils.php index 70d73a417..f48580b0f 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -501,7 +501,7 @@ function p_get_first_heading($id){ function p_xhtml_cached_geshi($code, $language) { $cache = getCacheName($language.$code,".code"); - if (@file_exists($cache)) { + if (@file_exists($cache) && !$_REQUEST['purge']) { $highlighted_code = io_readFile($cache, false); @touch($cache); -- cgit v1.2.3