Commit d7a0e4eb authored by Clément OUDOT's avatar Clément OUDOT

Log configuration load error in Manager logs (#LEMONLDAP-748)

git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_1_4-bugfixes@3524 1dbb9719-a921-0410-b57f-c3a383c2c641
parent 82a2ae12
......@@ -10,7 +10,7 @@ use Lemonldap::NG::Handler::CGI qw(:globalStorage :locationRules); #inherits
use Lemonldap::NG::Common::Conf; #link protected conf Configuration
use Lemonldap::NG::Common::Conf::Constants; #inherits
our $VERSION = '1.4.1';
our $VERSION = '1.4.2';
our @ISA = qw(
Lemonldap::NG::Handler::CGI
Lemonldap::NG::Manager::Downloader
......@@ -47,6 +47,14 @@ sub new {
or $class->abort( 'Unable to start ' . __PACKAGE__,
'See Apache logs for more' );
# Display an error if only default configuration is available
if ( $conf->lastCfg() eq 0 ) {
$self->lmLog(
"Unable to load configuration from backend: $Lemonldap::NG::Common::Conf::msg ",
"error"
);
}
# Default values
$self->{managerSkin} = "default" unless defined $self->{managerSkin};
$self->{managerCss} = "accordion.css" unless defined $self->{managerCss};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment