Skip to content

Commit

Permalink
add logo with multicompany
Browse files Browse the repository at this point in the history
this fix push entity to viewimage.php
  • Loading branch information
ptibogxiv committed Aug 30, 2018
1 parent 3e0b2d0 commit d285927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/public/payment/newpayment.php
Expand Up @@ -682,12 +682,12 @@
$urllogo='';
if (! empty($logosmall) && is_readable($conf->mycompany->dir_output.'/logos/thumbs/'.$logosmall))
{
$urllogo=DOL_URL_ROOT.'/viewimage.php?modulepart=mycompany&file='.urlencode('thumbs/'.$logosmall);
$urllogo=DOL_URL_ROOT.'/viewimage.php?modulepart=mycompany&entity='.$conf->entity.'&file='.urlencode('thumbs/'.$logosmall);
$width=150;
}
elseif (! empty($logo) && is_readable($conf->mycompany->dir_output.'/logos/'.$logo))
{
$urllogo=DOL_URL_ROOT.'/viewimage.php?modulepart=mycompany&file='.urlencode($logo);
$urllogo=DOL_URL_ROOT.'/viewimage.php?modulepart=mycompany&entity='.$conf->entity.'&file='.urlencode($logo);
$width=150;
}
// Output html code for logo
Expand Down

0 comments on commit d285927

Please sign in to comment.