create preview image if it doesn't exists

This commit is contained in:
Uwe Steinmann 2014-05-28 14:58:04 +02:00
parent 5a8d13e1e7
commit 05d6d9dca5

View File

@ -68,6 +68,8 @@ if (!is_object($object)) {
}
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir, $_GET["width"]);
if(!$previewer->hasPreview($object))
$previewer->createPreview($object);
header('Content-Type: image/png');
$previewer->getPreview($object);