summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/actions.php4
-rw-r--r--inc/parserutils.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 653910fe0..9e5ec5041 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -408,7 +408,11 @@ function act_export($act){
// try to run renderer
$mode = substr($act,7);
$text = p_cached_output(wikiFN($ID,$REV), $mode);
+ $headers = p_get_metadata($ID,"format $mode");
if(!is_null($text)){
+ if(is_array($headers)) foreach($headers as $key => $val){
+ header("$key: $val");
+ }
print $text;
exit;
}
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 66cf71b2b..d24417898 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -147,7 +147,7 @@ function p_cached_output($file, $format='xhtml', $id='') {
$cache = new cache_renderer($id, $file, $format);
if ($cache->useCache()) {
- $parsed = $cache->retrieveCache();
+ $parsed = $cache->retrieveCache(false);
if($conf['allowdebug'] && $format=='xhtml') $parsed .= "\n<!-- cachefile {$cache->cache} used -->\n";
} else {
$parsed = p_render($format, p_cached_instructions($file,false,$id), $info);