summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php4
1 files changed, 4 insertions, 0 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;
}