Get ini parameters before conf reload (#595)
This commit is contained in:
parent
7e34e4a47b
commit
12fbce8ac2
@ -60,11 +60,17 @@ has forAuthUser => (
|
|||||||
sub init {
|
sub init {
|
||||||
my ( $self, $args ) = @_;
|
my ( $self, $args ) = @_;
|
||||||
$args ||= {};
|
$args ||= {};
|
||||||
|
$self->localConfig(
|
||||||
|
{
|
||||||
|
%{ Lemonldap::NG::Common::Conf->new( $args->{configStorage} )
|
||||||
|
->getLocalConf('portal')
|
||||||
|
},
|
||||||
|
%$args
|
||||||
|
}
|
||||||
|
);
|
||||||
Lemonldap::NG::Handler::Main::Reload->onReload( $self, 'reloadConf' );
|
Lemonldap::NG::Handler::Main::Reload->onReload( $self, 'reloadConf' );
|
||||||
return 0 unless ( $self->SUPER::init($args) );
|
return 0 unless ( $self->SUPER::init($args) );
|
||||||
return 0 if ( $self->error );
|
return 0 if ( $self->error );
|
||||||
$self->localConfig(
|
|
||||||
{ %{ HANDLER->confAcc->getLocalConf('portal') }, %$args } );
|
|
||||||
|
|
||||||
# Handle requests (other path may be declared in enabled plugins)
|
# Handle requests (other path may be declared in enabled plugins)
|
||||||
$self
|
$self
|
||||||
|
Loading…
Reference in New Issue
Block a user