Revision 9ac69514
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
SL/LxOfficeConf.pm | ||
---|---|---|
30 | 30 |
|
31 | 31 |
return unless $class->safe_require($may_fail); |
32 | 32 |
|
33 |
read_config('config/lx_office.conf.default' => \%::lx_office_conf); |
|
33 |
# Backwards compatibility: read lx_office.conf.default if |
|
34 |
# kivitendo.conf.default does't exist. |
|
35 |
my $default_config = -f "config/kivitendo.conf.default" ? 'kivitendo' : 'lx_office'; |
|
36 |
read_config("config/${default_config}.conf.default" => \%::lx_office_conf); |
|
34 | 37 |
_decode_recursively(\%::lx_office_conf); |
35 | 38 |
|
36 |
$file_name ||= 'config/lx_office.conf'; |
|
39 |
$file_name ||= -f 'config/kivitendo.conf' ? 'config/kivitendo.conf' : 'config/lx_office.conf';
|
|
37 | 40 |
|
38 | 41 |
if (-f $file_name) { |
39 | 42 |
read_config($file_name => \ my %local_conf); |
Auch abrufbar als: Unified diff
Konfigurationsdateien config/lx_office.conf{.default} in kivitendo.conf{.default} umbenennen