Skip to content

Commit

Permalink
Fix image if multicompany + no login in onlinesign
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Aug 30, 2018
1 parent 3e0b2d0 commit fc804d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/public/onlinesign/newonlinesign.php
Expand Up @@ -180,11 +180,11 @@
$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);
}
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=96;
}
// Output html code for logo
Expand Down

0 comments on commit fc804d8

Please sign in to comment.