Merge branch 'master' of gitlab.ow2.org:lemonldap-ng/lemonldap-ng

This commit is contained in:
Christophe Maudoux 2018-09-09 23:20:24 +02:00
commit 1a92df05e7

View File

@ -197,17 +197,17 @@ sub _buildAuthLoop {
"Display type $displayType for module $auth");
$optionsLoop->{$displayType} = 1;
# If displayType is logo, check if key.png is available
# TODO:
#if (
# -e $self->getApacheHtdocsPath . "/skins/common/" . $_ . ".png" )
#{
# $optionsLoop->{logoFile} = $_ . ".png";
#}
#else {
$optionsLoop->{logoFile} = $auth . ".png";
#}
# If displayType is logo, check if key.png is available
if ( -e $self->conf->{templateDir}
. "/../htdocs/static/common/modules/"
. $_
. ".png" )
{
$optionsLoop->{logoFile} = $_ . ".png";
}
else {
$optionsLoop->{logoFile} = $auth . ".png";
}
# Register item in loop
push @authLoop, $optionsLoop;