diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/dokuwiki/index.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/views/default/dokuwiki/index.php b/views/default/dokuwiki/index.php index e1c1120f8..424f1109b 100644 --- a/views/default/dokuwiki/index.php +++ b/views/default/dokuwiki/index.php @@ -1,6 +1,13 @@ <?php global $CONFIG; $destfile = $CONFIG->pluginspath.'dokuwiki/vendors/dokuwiki/'.$vars['page']; - if (file_exists($destfile)) - include($destfile); + if (file_exists($destfile)) { + if (strpos($destfile, ".png") === FALSE) + { + include($destfile); + } else { + header("Content-type: image"); + echo file_get_contents($destfile); + } + } ?> |