]> git.pld-linux.org Git - packages/dokuwiki-plugin-odt.git/blob - dokuwiki-odt-20070626.patch
- unify; rel 1
[packages/dokuwiki-plugin-odt.git] / dokuwiki-odt-20070626.patch
1 diff --git a/renderer.php b/renderer.php
2 index 6aba3f3..a899e62 100644
3 --- a/renderer.php
4 +++ b/renderer.php
5 @@ -16,6 +16,7 @@ require_once DOKU_INC.'inc/ZipLib.class.php';
6   * The Renderer
7   */
8  class renderer_plugin_odt extends Doku_Renderer {
9 +    var $info = array("cache"=> false);
10      var $ZIP = null;
11      var $meta;
12      var $store = '';
13 @@ -136,12 +137,9 @@ class renderer_plugin_odt extends Doku_Renderer {
14  
15          $this->_odtMeta();
16  
17 -        // store the content type headers in metadata
18 -        $headers = array(
19 -            'Content-Type' => 'application/vnd.oasis.opendocument.text',
20 -            'Content-Disposition' => 'attachment; filename="'.noNS($ID).'.odt";'
21 -        );
22 -        p_set_metadata($ID,array('format' => array('odt' => $headers) ));
23 +        // send the content type header
24 +        header('Content-Type: application/vnd.oasis.opendocument.text');
25 +        header('Content-Disposition: attachment; filename="'.str_replace(':','-',$ID).'.odt";');
26      }
27  
28      /**
This page took 0.085649 seconds and 3 git commands to generate.