From 7b51d06c702338966626125f675019ba6b449421 Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Mon, 7 Dec 2020 00:00:00 +0000 Subject: [PATCH 1/2] Fixed strict type issue. --- Module.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Module.php b/Module.php index a260d74..b4c6bdf 100755 --- a/Module.php +++ b/Module.php @@ -206,7 +206,9 @@ public function extractOcr(Event $event): void $hasPdf = false; $targetFilename = null; foreach ($item->getMedia() as $media) { - if (strtolower($media->getExtension()) === 'pdf' && $media->getMediaType() === 'application/pdf') { + if (strtolower((string) $media->getExtension()) === 'pdf' + && $media->getMediaType() === 'application/pdf' + ) { $hasPdf = true; $targetFilename = basename($media->getSource(), '.pdf') . '.xml'; break; From de38c00ce388aed580c2c3899e292b3962f9e540 Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Mon, 7 Dec 2020 00:00:00 +0000 Subject: [PATCH 2/2] Released version 3.3.2.1. --- config/module.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/module.ini b/config/module.ini index a4adacc..968afc9 100755 --- a/config/module.ini +++ b/config/module.ini @@ -7,5 +7,5 @@ author = "bubdxm, completed by Daniel Berthereau" author_link = "https://github.com/symac" module_link = "http://github.com/bubdxm/Omeka-S-module-ExtractOcr" configurable = true -version = "3.3.2" +version = "3.3.2.1" omeka_version_constraint = "^3.0.0"