- replaced hard coded path of cache dir

This commit is contained in:
steinm 2012-12-17 07:39:22 +00:00
parent d668a9d789
commit 27fb745dd9

View File

@ -56,7 +56,7 @@ if (!is_object($content)) {
exit;
}
$previewer = new LetoDMS_Preview_Previewer('/var/lib/letodms/content/cache', $_GET["width"]);
$previewer = new LetoDMS_Preview_Previewer($settings->_cacheDir, $_GET["width"]);
header('Content-Type: image/png');
$previewer->getPreview($content);