Get ini parameters before conf reload (#595)

This commit is contained in:
Xavier Guimard 2016-04-06 20:10:01 +00:00
parent 7e34e4a47b
commit 12fbce8ac2

View File

@ -60,11 +60,17 @@ has forAuthUser => (
sub init {
my ( $self, $args ) = @_;
$args ||= {};
$self->localConfig(
{
%{ Lemonldap::NG::Common::Conf->new( $args->{configStorage} )
->getLocalConf('portal')
},
%$args
}
);
Lemonldap::NG::Handler::Main::Reload->onReload( $self, 'reloadConf' );
return 0 unless ( $self->SUPER::init($args) );
return 0 if ( $self->error );
$self->localConfig(
{ %{ HANDLER->confAcc->getLocalConf('portal') }, %$args } );
# Handle requests (other path may be declared in enabled plugins)
$self