Skip to content

Commit

Permalink
Can change size of Logo picture
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrosis committed Aug 30, 2014
1 parent 154d152 commit 445bac2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/core/lib/pdf.lib.php
Expand Up @@ -269,7 +269,9 @@ function pdf_getPDFFontSize($outputlangs)
*/
function pdf_getHeightForLogo($logo, $url = false)
{
$height=22; $maxwidth=130;
global $conf;
$height=(empty($conf->global->MAIN_DOCUMENTS_LOGO_HEIGHT)?22:$conf->global->MAIN_DOCUMENTS_LOGO_HEIGHT);
$maxwidth=130;
include_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
$tmp=dol_getImageSize($logo, $url);
if ($tmp['height'])
Expand Down

0 comments on commit 445bac2

Please sign in to comment.