SOURCES: dokuwiki-odt-20070626.patch (NEW) - make odt plugin compa...
glen
glen at pld-linux.org
Mon Mar 3 13:46:30 CET 2008
Author: glen Date: Mon Mar 3 12:46:30 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- make odt plugin compatible with DW 20070626
---- Files affected:
SOURCES:
dokuwiki-odt-20070626.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/dokuwiki-odt-20070626.patch
diff -u /dev/null SOURCES/dokuwiki-odt-20070626.patch:1.1
--- /dev/null Mon Mar 3 13:46:30 2008
+++ SOURCES/dokuwiki-odt-20070626.patch Mon Mar 3 13:46:25 2008
@@ -0,0 +1,28 @@
+diff --git a/renderer.php b/renderer.php
+index 6aba3f3..a899e62 100644
+--- a/renderer.php
++++ b/renderer.php
+@@ -16,6 +16,7 @@ require_once DOKU_INC.'inc/ZipLib.class.php';
+ * The Renderer
+ */
+ class renderer_plugin_odt extends Doku_Renderer {
++ var $info = array("cache"=> false);
+ var $ZIP = null;
+ var $meta;
+ var $store = '';
+@@ -136,12 +137,9 @@ class renderer_plugin_odt extends Doku_Renderer {
+
+ $this->_odtMeta();
+
+- // store the content type headers in metadata
+- $headers = array(
+- 'Content-Type' => 'application/vnd.oasis.opendocument.text',
+- 'Content-Disposition' => 'attachment; filename="'.noNS($ID).'.odt";'
+- );
+- p_set_metadata($ID,array('format' => array('odt' => $headers) ));
++ // send the content type header
++ header('Content-Type: application/vnd.oasis.opendocument.text');
++ header('Content-Disposition: attachment; filename="'.str_replace(':','-',$ID).'.odt";');
+ }
+
+ /**
================================================================
More information about the pld-cvs-commit
mailing list