From c62e091dc353bccb8997a327b287d7b1a4f5c05c Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@afi-sa.fr> Date: Mon, 2 Mar 2015 14:50:59 +0100 Subject: [PATCH] Fix Import Typo3 / PHP 5.4 compatibility --- library/Class/Import/Typo3.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/Class/Import/Typo3.php b/library/Class/Import/Typo3.php index 4913cc2cf97..9c5198fb8da 100644 --- a/library/Class/Import/Typo3.php +++ b/library/Class/Import/Typo3.php @@ -28,10 +28,11 @@ class Class_Import_Typo3 { const BOKEH_FILEADMIN_URL = "http://www.mediathequeouestprovence.fr/fileadmin/"; // const BOKEH_FILEADMIN_URL= "http://web.afi-sa.net/miop_test.net/userfiles/image/"; - const FOREIGN_UID_DATETIME = [867,36]; + const UID_TYPO3_CF = 'uid_typo3'; protected + $FOREIGN_UID_DATETIME = [867,36], $user_mapper, $unknown_koha_urls = []; @@ -494,7 +495,7 @@ class Class_Import_Typo3 { public function setMiopDateEvent($article, $data) { - if ($this->existCategoriesAsForeign($data, self::FOREIGN_UID_DATETIME)) { + if ($this->existCategoriesAsForeign($data, $this->FOREIGN_UID_DATETIME)) { $converted_date = $this->formatDate($data['datetime']); $article->setEventsDebut($converted_date)->setEventsFin($converted_date); } -- GitLab