Skip to content

Commit

Permalink
Le logo dépend du theme par defaut si le logo de l'entreprise n'est p…
Browse files Browse the repository at this point in the history
…as configuré
  • Loading branch information
cdelambert committed Aug 17, 2011
1 parent d0b74c5 commit bb8e864
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion htdocs/lib/security.lib.php
Expand Up @@ -20,7 +20,7 @@
/**
* \file htdocs/lib/security.lib.php
* \brief Set of function used for dolibarr security
* \version $Id: security.lib.php,v 1.126 2011/08/11 19:41:24 eldy Exp $
* \version $Id: security.lib.php,v 1.127 2011/08/17 13:59:24 cdelambert Exp $
*/


Expand Down Expand Up @@ -200,9 +200,14 @@ function dol_loginfunction($langs,$conf,$mysoc)
$urllogo=DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=companylogo&file='.urlencode($mysoc->logo);
$width=128;
}
elseif (is_readable(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/dolibarr_logo.png'))
{
$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';

}

// Entity field
Expand Down

0 comments on commit bb8e864

Please sign in to comment.