From 9cffd17e19ccae47c7c04d4e5f6a0c004035b76a Mon Sep 17 00:00:00 2001 From: Timothee Date: Wed, 13 Nov 2024 14:39:23 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07704=20Fix=20missing=20namespace=20for?= =?UTF-8?q?=20constant=20EVENT=5FDOWNLOAD=5FDOCUMENT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/ormdocument.class.inc.php | 2 +- datamodels/2.x/itop-attachments/src/Hook/EventListener.php | 2 +- sources/Core/EventListener/AttributeBlobEventListener.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/ormdocument.class.inc.php b/core/ormdocument.class.inc.php index ee0bc0561..358fc3eea 100644 --- a/core/ormdocument.class.inc.php +++ b/core/ormdocument.class.inc.php @@ -314,7 +314,7 @@ class ormDocument 'document' => $oDocument, 'content_disposition' => $sContentDisposition, ); - EventService::FireEvent(new EventData(EVENT_DOWNLOAD_DOCUMENT, $sClass, $aEventData)); + EventService::FireEvent(new EventData(\EVENT_DOWNLOAD_DOCUMENT, $sClass, $aEventData)); $oPage->TrashUnexpectedOutput(); $oPage->SetContentType($oDocument->GetMimeType()); $oPage->SetContentDisposition($sContentDisposition,$oDocument->GetFileName()); diff --git a/datamodels/2.x/itop-attachments/src/Hook/EventListener.php b/datamodels/2.x/itop-attachments/src/Hook/EventListener.php index 6f8a9bf34..273f9506e 100644 --- a/datamodels/2.x/itop-attachments/src/Hook/EventListener.php +++ b/datamodels/2.x/itop-attachments/src/Hook/EventListener.php @@ -33,7 +33,7 @@ class EventListener implements iEventServiceSetup public function RegisterEventsAndListeners() { EventService::RegisterListener( - EVENT_DOWNLOAD_DOCUMENT, + \EVENT_DOWNLOAD_DOCUMENT, [$this, 'OnAttachmentDownloadActivateTriggers'], 'Attachment' ); diff --git a/sources/Core/EventListener/AttributeBlobEventListener.php b/sources/Core/EventListener/AttributeBlobEventListener.php index f3d75fe2a..4db7ee276 100644 --- a/sources/Core/EventListener/AttributeBlobEventListener.php +++ b/sources/Core/EventListener/AttributeBlobEventListener.php @@ -34,7 +34,7 @@ class AttributeBlobEventListener implements iEventServiceSetup public function RegisterEventsAndListeners() { EventService::RegisterListener( - EVENT_DOWNLOAD_DOCUMENT, + \EVENT_DOWNLOAD_DOCUMENT, [$this, 'OnAttributeBlobDownloadActivateTrigger'] ); }