mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
make sure list of converters is an array, start new version 1.2.9
This commit is contained in:
parent
26d3c7a504
commit
49af6ab171
|
@ -55,6 +55,7 @@ class SeedDMS_Preview_Base {
|
|||
$this->previewDir = $previewDir;
|
||||
}
|
||||
$this->timeout = intval($timeout);
|
||||
$this->converters = array();
|
||||
} /* }}} */
|
||||
|
||||
static function execWithTimeout($cmd, $timeout=5) { /* {{{ */
|
||||
|
@ -109,7 +110,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();
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
<email>uwe@steinmann.cx</email>
|
||||
<active>yes</active>
|
||||
</lead>
|
||||
<date>2018-03-08</date>
|
||||
<date>2018-03-20</date>
|
||||
<time>10:59:39</time>
|
||||
<version>
|
||||
<release>1.2.8</release>
|
||||
<release>1.2.9</release>
|
||||
<api>1.2.0</api>
|
||||
</version>
|
||||
<stability>
|
||||
|
@ -23,7 +23,7 @@
|
|||
</stability>
|
||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||
<notes>
|
||||
preview is also created if SeedDMS_Core_DocumentContent has a child class
|
||||
make sure list of converters is always an array
|
||||
</notes>
|
||||
<contents>
|
||||
<dir baseinstalldir="SeedDMS" name="/">
|
||||
|
@ -370,5 +370,21 @@ mod_xsendfile if available
|
|||
execWithTimeout() reads data from stderr and returns it together with stdout in array
|
||||
</notes>
|
||||
</release>
|
||||
<release>
|
||||
<date>2018-03-08</date>
|
||||
<time>10:59:39</time>
|
||||
<version>
|
||||
<release>1.2.8</release>
|
||||
<api>1.2.0</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
<api>stable</api>
|
||||
</stability>
|
||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||
<notes>
|
||||
preview is also created if SeedDMS_Core_DocumentContent has a child class
|
||||
</notes>
|
||||
</release>
|
||||
</changelog>
|
||||
</package>
|
||||
|
|
Loading…
Reference in New Issue
Block a user