Skip to content

Commit

Permalink
Use SVG logo instead of png
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 24, 2020
1 parent 1cda54c commit 32d1246
Show file tree
Hide file tree
Showing 3 changed files with 442 additions and 7 deletions.
8 changes: 2 additions & 6 deletions htdocs/core/lib/security2.lib.php
Expand Up @@ -232,13 +232,9 @@ function dol_loginfunction($langs, $conf, $mysoc)
$urllogo = DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode('logos/'.$mysoc->logo);
$width = 128;
}
elseif (is_readable(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/dolibarr_logo.png'))
elseif (is_readable(DOL_DOCUMENT_ROOT.'/theme/dolibarr_logo.svg'))
{
$urllogo = DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/dolibarr_logo.png';
}
elseif (is_readable(DOL_DOCUMENT_ROOT.'/theme/dolibarr_logo.png'))
{
$urllogo = DOL_URL_ROOT.'/theme/dolibarr_logo.png';
$urllogo = DOL_URL_ROOT.'/theme/dolibarr_logo.svg';
}

// Security graphical code
Expand Down

0 comments on commit 32d1246

Please sign in to comment.