pass cachedir and previewWidthList to view

This commit is contained in:
Uwe Steinmann 2014-05-22 07:33:24 +02:00
parent d412b3ffad
commit d9c7b988f4

View File

@ -22,12 +22,17 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php"); include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php"); include("../inc/inc.Authentication.php");
/**
* Include class to preview documents
*/
require_once("SeedDMS/Preview.php");
if ($user->isGuest()) { if ($user->isGuest()) {
UI::exitError(getMLText("my_account"),getMLText("access_denied")); UI::exitError(getMLText("my_account"),getMLText("access_denied"));
} }
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'cachedir'=>$settings->_cacheDir, 'previewWidthList'=>$settings->_previewWidthList));
if($view) { if($view) {
$view->show(); $view->show();
exit; exit;