Skip to content
Snippets Groups Projects
Commit 5e35524d authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

adjust mime type detection for presenting/image, fixes #1

parent 06e9b1b9
No related branches found
No related tags found
No related merge requests found
......@@ -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
pluginname=PluginMarktplatz
pluginclassname=PluginMarket
origin=studip
version=1.0.10
\ No newline at end of file
version=1.0.11
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment