Skip to content

Commit

Permalink
fix: logo display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
flegastelois authored Jul 8, 2024
1 parent ba70673 commit 20cf857
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions inc/export.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
?>
Expand All @@ -261,7 +261,7 @@ public static function generatePDF($users_id)
<page_header>
<table>
<tr>
<td style="height: 60mm; width: 40%; text-align: center"><img src="<?php echo $logo; ?>" /></td>
<td style="height: 60mm; width: 40%; text-align: center"><img src="data:image/png;base64,<?php echo $logo_base64; ?>" /></td>
<td style="width: 60%; text-align: center;">
<?php echo $entity_address; ?>
</td>
Expand Down

0 comments on commit 20cf857

Please sign in to comment.