]> git.pld-linux.org Git - packages/dokuwiki-plugin-odt.git/commitdiff
- make odt plugin compatible with DW 20070626
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 3 Mar 2008 12:46:25 +0000 (12:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-odt-20070626.patch -> 1.1

dokuwiki-odt-20070626.patch [new file with mode: 0644]

diff --git a/dokuwiki-odt-20070626.patch b/dokuwiki-odt-20070626.patch
new file mode 100644 (file)
index 0000000..c0378f3
--- /dev/null
@@ -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";');
+     }
+     /**
This page took 0.071308 seconds and 4 git commands to generate.