diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-06-24 15:21:26 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-06-24 15:21:26 +0200 |
commit | ff1769defb9de14a80792aed16652451a29f03da (patch) | |
tree | 55a1539e10f1d0f7d1adfe80a3cf38a2d447f7ce /inc/parserutils.php | |
parent | 8fbb9b1406a6a8bb097209155e1b1142fa556260 (diff) | |
download | rpg-ff1769defb9de14a80792aed16652451a29f03da.tar.gz rpg-ff1769defb9de14a80792aed16652451a29f03da.tar.bz2 |
another input wrapper fix
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r-- | inc/parserutils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php index 9384929bf..25d7cf131 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -739,7 +739,7 @@ function p_get_first_heading($id, $render=METADATA_RENDER_USING_SIMPLE_CACHE){ * @author Andreas Gohr <andi@splitbrain.org> */ function p_xhtml_cached_geshi($code, $language, $wrapper='pre') { - global $conf, $config_cascade; + global $conf, $config_cascade, $INPUT; $language = strtolower($language); // remove any leading or trailing blank lines @@ -747,7 +747,7 @@ function p_xhtml_cached_geshi($code, $language, $wrapper='pre') { $cache = getCacheName($language.$code,".code"); $ctime = @filemtime($cache); - if($ctime && !$_REQUEST['purge'] && + if($ctime && !$INPUT->bool('purge') && $ctime > filemtime(DOKU_INC.'inc/geshi.php') && // geshi changed $ctime > @filemtime(DOKU_INC.'inc/geshi/'.$language.'.php') && // language syntax definition changed $ctime > filemtime(reset($config_cascade['main']['default']))){ // dokuwiki changed |