Bug in _Multi.pm : eval { require $mod } means "search the file named $mod", but since $mod is a module name, we have to write eval "require $mod"

environments/ppa-mbqj77/deployments/1
Xavier Guimard 16 years ago
parent 112cf4c1e6
commit a8c75750cd
  1. 2
      modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_Multi.pm

@ -33,7 +33,7 @@ sub new {
$cond = 1 unless ( defined $cond );
$mod = "Lemonldap::NG::Portal::" . [ 'Auth', 'UserDB' ]->[$i] . $mod
unless ( $mod =~ /::/ );
eval { require $mod };
eval "require $mod";
$portal->abort( 'Bad configuration', "Unable to load $mod ($@)" )
if ($@);
push @{ $self->{stack}->[$i] },

Loading…
Cancel
Save