Read notificationStorageOptions (#322)

This commit is contained in:
Clément Oudot 2011-06-08 08:06:17 +00:00
parent c7e458d59c
commit ff87a6a620

View File

@ -378,7 +378,10 @@ sub new {
require Lemonldap::NG::Portal::Notification; require Lemonldap::NG::Portal::Notification;
my $tmp; my $tmp;
if ( $self->{notificationStorage} ) { if ( $self->{notificationStorage} ) {
$tmp = $self->{notificationStorage}; $tmp->{type} = $self->{notificationStorage};
foreach ( keys %{ $self->{notificationStorageOptions} } ) {
$tmp->{$_} = $self->{notificationStorageOptions}->{$_};
}
} }
else { else {
(%$tmp) = ( %{ $self->{lmConf} } ); (%$tmp) = ( %{ $self->{lmConf} } );