Fixing style errors.
This commit is contained in:
parent
04dc3ae8cd
commit
bb09a39ce6
@ -63,14 +63,12 @@ if (!empty($conf->global->MAIN_MANIFEST_APPLI_LOGO_URL)){
|
|||||||
$manifest->icons[] = $icon;
|
$manifest->icons[] = $icon;
|
||||||
}
|
}
|
||||||
elseif (!empty($conf->global->MAIN_INFO_SOCIETE_LOGO_SQUARRED)){
|
elseif (!empty($conf->global->MAIN_INFO_SOCIETE_LOGO_SQUARRED)){
|
||||||
|
|
||||||
if (!empty($conf->global->MAIN_INFO_SOCIETE_LOGO_SQUARRED_MINI)){
|
if (!empty($conf->global->MAIN_INFO_SOCIETE_LOGO_SQUARRED_MINI)){
|
||||||
$iconRelativePath = 'logos/thumbs/'.$conf->global->MAIN_INFO_SOCIETE_LOGO_SQUARRED_MINI;
|
$iconRelativePath = 'logos/thumbs/'.$conf->global->MAIN_INFO_SOCIETE_LOGO_SQUARRED_MINI;
|
||||||
$iconPath = $conf->mycompany->dir_output.'/'.$iconRelativePath;
|
$iconPath = $conf->mycompany->dir_output.'/'.$iconRelativePath;
|
||||||
if (is_readable($iconPath)) {
|
if (is_readable($iconPath)) {
|
||||||
$imgSize = getimagesize($iconPath);
|
$imgSize = getimagesize($iconPath);
|
||||||
if ($imgSize){
|
if ($imgSize){
|
||||||
|
|
||||||
$icon = new stdClass();
|
$icon = new stdClass();
|
||||||
$icon->src = DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode($iconRelativePath);
|
$icon->src = DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode($iconRelativePath);
|
||||||
$icon->sizes = $imgSize[0]."x".$imgSize[1];
|
$icon->sizes = $imgSize[0]."x".$imgSize[1];
|
||||||
@ -86,7 +84,6 @@ elseif (!empty($conf->global->MAIN_INFO_SOCIETE_LOGO_SQUARRED)){
|
|||||||
if (is_readable($iconPath)) {
|
if (is_readable($iconPath)) {
|
||||||
$imgSize = getimagesize($iconPath);
|
$imgSize = getimagesize($iconPath);
|
||||||
if ($imgSize){
|
if ($imgSize){
|
||||||
|
|
||||||
$icon = new stdClass();
|
$icon = new stdClass();
|
||||||
$icon->src = DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode($iconRelativePath);
|
$icon->src = DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode($iconRelativePath);
|
||||||
$icon->sizes = $imgSize[0]."x".$imgSize[1];
|
$icon->sizes = $imgSize[0]."x".$imgSize[1];
|
||||||
@ -102,7 +99,6 @@ elseif (!empty($conf->global->MAIN_INFO_SOCIETE_LOGO_SQUARRED)){
|
|||||||
if (is_readable($iconPath)) {
|
if (is_readable($iconPath)) {
|
||||||
$imgSize = getimagesize($iconPath);
|
$imgSize = getimagesize($iconPath);
|
||||||
if ($imgSize){
|
if ($imgSize){
|
||||||
|
|
||||||
$icon = new stdClass();
|
$icon = new stdClass();
|
||||||
$icon->src = DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode($iconRelativePath);
|
$icon->src = DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode($iconRelativePath);
|
||||||
$icon->sizes = $imgSize[0]."x".$imgSize[1];
|
$icon->sizes = $imgSize[0]."x".$imgSize[1];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user