aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--inc/Action/Export.php3
-rw-r--r--inc/parser/metadata.php2
2 files changed, 5 insertions, 0 deletions
diff --git a/inc/Action/Export.php b/inc/Action/Export.php
index 61458e298..68f2358de 100644
--- a/inc/Action/Export.php
+++ b/inc/Action/Export.php
@@ -86,6 +86,9 @@ class Export extends AbstractAction
$headers['Content-Type'] = 'text/html; charset=utf-8';
$output = p_wiki_xhtml($ID, $REV, false);
break;
+ case 'metadata':
+ // metadata should not be exported
+ break;
default:
$output = p_cached_output(wikiFN($ID, $REV), $mode, $ID);
$headers = p_get_metadata($ID, "format $mode");
diff --git a/inc/parser/metadata.php b/inc/parser/metadata.php
index 2d84f5060..3ba576ebe 100644
--- a/inc/parser/metadata.php
+++ b/inc/parser/metadata.php
@@ -108,6 +108,8 @@ class Doku_Renderer_metadata extends Doku_Renderer
if (!isset($this->meta['date']['modified'])) {
$this->meta['date']['modified'] = filemtime(wikiFN($ID));
}
+
+ $this->doc = '';
}
/**