From 20cf85782420a8a60c44beef7b8d70545af7d7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Legastelois?= Date: Mon, 8 Jul 2024 10:15:09 +0200 Subject: [PATCH] fix: logo display issue --- CHANGELOG.md | 12 ++++++++++++ inc/export.class.php | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..aa7ad5f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,12 @@ +# Change Log + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/) +and this project adheres to [Semantic Versioning](http://semver.org/). + +## [unrelease] - + +### Fixed + +- Prevent logo display issue. diff --git a/inc/export.class.php b/inc/export.class.php index 424406a..126b174 100644 --- a/inc/export.class.php +++ b/inc/export.class.php @@ -250,7 +250,7 @@ public static function generatePDF($users_id) $Author->getFromDB(Session::getLoginUserID()); // Logo - $logo = GLPI_PLUGIN_DOC_DIR . '/useditemsexport/logo.png'; + $logo_base64 = base64_encode(file_get_contents(GLPI_PLUGIN_DOC_DIR . '/useditemsexport/logo.png')); ob_start(); ?> @@ -261,7 +261,7 @@ public static function generatePDF($users_id) - +