diff --git a/classes/MarketImage.class.php b/classes/MarketImage.class.php index e2ae574505296fac7b0198605b60c17ba7a4a916..1e87af1759096a0db04c325b0d6fefce206fa01b 100644 --- a/classes/MarketImage.class.php +++ b/classes/MarketImage.class.php @@ -44,9 +44,9 @@ class MarketImage extends SimpleORMap { } public function outputImage() { - $path = self::getImageDataPath()."/".$this->getId(); - header("Content-Type: ".$this['mimetype']); - header("Content-Disposition: inline; filename=".$this['filename']); + $path = self::getImageDataPath() . "/" . $this->getId(); + header("Content-Type: " . mime_content_type($path)); + header("Content-Disposition: inline; filename=" . $this['filename']); echo file_get_contents($path); } } \ No newline at end of file diff --git a/plugin.manifest b/plugin.manifest index f6c82a4bdfed7e9a9c00a496040337c9bc1549e2..12feb62c47f63269d2c525370be0894125fc5d3f 100644 --- a/plugin.manifest +++ b/plugin.manifest @@ -1,4 +1,4 @@ pluginname=PluginMarktplatz pluginclassname=PluginMarket origin=studip -version=1.0.10 \ No newline at end of file +version=1.0.11