backport some changes from 6.0.x

This commit is contained in:
Uwe Steinmann 2023-01-20 16:57:34 +01:00
parent 4c39fb065a
commit 496bc9214d

View File

@ -73,6 +73,7 @@ class SeedDMS_Preview_Base {
$this->previewDir = $previewDir;
}
$this->timeout = intval($timeout);
$this->converters = array();
$this->xsendfile = $xsendfile;
$this->conversionmgr = null;
} /* }}} */
@ -154,7 +155,10 @@ class SeedDMS_Preview_Base {
* and the value is the command to be called for creating the preview
*/
function setConverters($arr) { /* {{{ */
$this->converters = $arr;
if(is_array($arr))
$this->converters = $arr;
else
$this->converters = array();
} /* }}} */
/**