Skip to content

Commit

Permalink
change logo from version - fixed #5475
Browse files Browse the repository at this point in the history
git-svn-id: https://forge.glpi-project.org/svn/pdf/trunk@447 349b9182-4a13-0410-896f-e5e9767dd1b3
  • Loading branch information
yllen committed Mar 18, 2016
1 parent fec5402 commit d40fb34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion inc/simplepdf.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,18 @@ public function setHeader($msg) {
$this->header = $msg;
$this->pdf->resetHeaderTemplate();
$this->pdf->SetTitle($msg);
$this->pdf->SetHeaderData('fd_logo.jpg', 15, $msg, '');
$configurationValues = Config::getConfigurationValues('core', array('version'));
$current_version = $configurationValues['version'];
switch ($current_version) {
case "0.85.3" :
case "0.85.4" :
case "0.85.5" :
$this->pdf->SetHeaderData('fd_logo.jpg', 15, $msg, '');
break;

default :
$this->pdf->SetHeaderData('fd_logo.png', 15, $msg, '');
}
}


Expand Down
Binary file added pics/fd_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d40fb34

Please sign in to comment.