genimg improvements

This commit is contained in:
andreubisquerra 2020-05-24 16:29:42 +02:00 committed by GitHub
parent 75fc8b9adf
commit 26ee0d1949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ if ($query == "cat")
{
$filename = $obj['photo'];
}
$file = DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=category&entity='.$object->entity.'&file='.urlencode($pdir.$filename);
$file = DOL_URL_ROOT.'/viewimage.php?cache=1&publictakepos=1&modulepart=category&entity='.$object->entity.'&file='.urlencode($pdir.$filename);
header('Location: '.$file);
exit;
}