mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 06:28:46 +02:00
* refactor
* Add event AFTER_DISPLAY_PAGE
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
use Combodo\iTop\Service\EventName;
|
||||
use Combodo\iTop\Service\Event;
|
||||
use Combodo\iTop\Service\EventService;
|
||||
|
||||
|
||||
/**
|
||||
@@ -220,7 +220,7 @@ class ormDocument
|
||||
'object' => $oObj,
|
||||
'document' => $oDocument,
|
||||
);
|
||||
Event::FireEvent(EventName::DOWNLOAD_DOCUMENT, $sClass, $aEventData);
|
||||
EventService::FireEvent(EventName::DOWNLOAD_DOCUMENT, $sClass, $aEventData);
|
||||
$oPage->TrashUnexpectedOutput();
|
||||
$oPage->SetContentType($oDocument->GetMimeType());
|
||||
$oPage->SetContentDisposition($sContentDisposition,$oDocument->GetFileName());
|
||||
|
||||
Reference in New Issue
Block a user