make sure list of converters is an array, start new version 1.2.9

This commit is contained in:
Uwe Steinmann 2018-03-20 11:08:08 +01:00
parent 26d3c7a504
commit 49af6ab171
2 changed files with 24 additions and 4 deletions

View File

@ -55,6 +55,7 @@ class SeedDMS_Preview_Base {
$this->previewDir = $previewDir; $this->previewDir = $previewDir;
} }
$this->timeout = intval($timeout); $this->timeout = intval($timeout);
$this->converters = array();
} /* }}} */ } /* }}} */
static function execWithTimeout($cmd, $timeout=5) { /* {{{ */ 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 * and the value is the command to be called for creating the preview
*/ */
function setConverters($arr) { /* {{{ */ function setConverters($arr) { /* {{{ */
if(is_array($arr))
$this->converters = $arr; $this->converters = $arr;
else
$this->converters = array();
} /* }}} */ } /* }}} */
/** /**

View File

@ -11,10 +11,10 @@
<email>uwe@steinmann.cx</email> <email>uwe@steinmann.cx</email>
<active>yes</active> <active>yes</active>
</lead> </lead>
<date>2018-03-08</date> <date>2018-03-20</date>
<time>10:59:39</time> <time>10:59:39</time>
<version> <version>
<release>1.2.8</release> <release>1.2.9</release>
<api>1.2.0</api> <api>1.2.0</api>
</version> </version>
<stability> <stability>
@ -23,7 +23,7 @@
</stability> </stability>
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license> <license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes> <notes>
preview is also created if SeedDMS_Core_DocumentContent has a child class make sure list of converters is always an array
</notes> </notes>
<contents> <contents>
<dir baseinstalldir="SeedDMS" name="/"> <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 execWithTimeout() reads data from stderr and returns it together with stdout in array
</notes> </notes>
</release> </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> </changelog>
</package> </package>