From f48f649249fd10ec69d75d89bed82c9e51316275 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 5 Jan 2023 08:05:46 +0100 Subject: [PATCH] call constructor of parent --- inc/inc.ClassConversionServiceExec.php | 1 + inc/inc.ClassConversionServiceImageToImage.php | 1 + inc/inc.ClassConversionServiceImageToText.php | 1 + inc/inc.ClassConversionServicePdfToImage.php | 2 ++ inc/inc.ClassConversionServiceTextToImage.php | 1 + inc/inc.ClassConversionServiceTextToText.php | 1 + 6 files changed, 7 insertions(+) diff --git a/inc/inc.ClassConversionServiceExec.php b/inc/inc.ClassConversionServiceExec.php index eff1d5ab1..c03c2c441 100644 --- a/inc/inc.ClassConversionServiceExec.php +++ b/inc/inc.ClassConversionServiceExec.php @@ -92,6 +92,7 @@ class SeedDMS_ConversionServiceExec extends SeedDMS_ConversionServiceBase { } /* }}} */ public function __construct($from, $to, $cmd, $timeout=5) { + parent::__construct(); $this->from = $from; $this->to = $to; $this->cmd = $cmd; diff --git a/inc/inc.ClassConversionServiceImageToImage.php b/inc/inc.ClassConversionServiceImageToImage.php index b5c9e7951..27905ad10 100644 --- a/inc/inc.ClassConversionServiceImageToImage.php +++ b/inc/inc.ClassConversionServiceImageToImage.php @@ -29,6 +29,7 @@ class SeedDMS_ConversionServiceImageToImage extends SeedDMS_ConversionServiceBas public $timeout; public function __construct($from, $to) { /* {{{ */ + parent::__construct(); $this->from = $from; $this->to = $to; $this->timeout = 5; diff --git a/inc/inc.ClassConversionServiceImageToText.php b/inc/inc.ClassConversionServiceImageToText.php index 326dba28c..1672d55f2 100644 --- a/inc/inc.ClassConversionServiceImageToText.php +++ b/inc/inc.ClassConversionServiceImageToText.php @@ -29,6 +29,7 @@ class SeedDMS_ConversionServiceImageToText extends SeedDMS_ConversionServiceBase public $timeout; public function __construct($from, $to) { /* {{{ */ + parent::__construct(); $this->from = $from; $this->to = $to; } /* }}} */ diff --git a/inc/inc.ClassConversionServicePdfToImage.php b/inc/inc.ClassConversionServicePdfToImage.php index d42bed80f..349565232 100644 --- a/inc/inc.ClassConversionServicePdfToImage.php +++ b/inc/inc.ClassConversionServicePdfToImage.php @@ -29,6 +29,7 @@ class SeedDMS_ConversionServicePdfToImage extends SeedDMS_ConversionServiceBase public $timeout; public function __construct($from, $to) { + parent::__construct(); $this->from = $from; $this->to = $to; $this->timeout = 5; @@ -75,6 +76,7 @@ class SeedDMS_ConversionServicePdfToImage extends SeedDMS_ConversionServiceBase } } } catch (ImagickException $e) { + $this->success = false; return false; } return false; diff --git a/inc/inc.ClassConversionServiceTextToImage.php b/inc/inc.ClassConversionServiceTextToImage.php index c34f32d98..6c526c695 100644 --- a/inc/inc.ClassConversionServiceTextToImage.php +++ b/inc/inc.ClassConversionServiceTextToImage.php @@ -24,6 +24,7 @@ require_once("inc/inc.ClassConversionServiceBase.php"); */ class SeedDMS_ConversionServiceTextToImage extends SeedDMS_ConversionServiceBase { public function __construct($from, $to) { + parent::__construct(); $this->from = $from; $this->to = $to; } diff --git a/inc/inc.ClassConversionServiceTextToText.php b/inc/inc.ClassConversionServiceTextToText.php index 5342c9f4d..ae68c6080 100644 --- a/inc/inc.ClassConversionServiceTextToText.php +++ b/inc/inc.ClassConversionServiceTextToText.php @@ -24,6 +24,7 @@ require_once("inc/inc.ClassConversionServiceBase.php"); */ class SeedDMS_ConversionServiceTextToText extends SeedDMS_ConversionServiceBase { public function __construct($from, $to) { + parent::__construct(); $this->from = $from; $this->to = $to; }