X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/ba659b53059e637777865e646f0f2a6fb7f2988e..5c8a814d80027a517d1094008d6af063457fc6eb:/selfforum-cgi/shared/Conf.pm diff --git a/selfforum-cgi/shared/Conf.pm b/selfforum-cgi/shared/Conf.pm index 1fa97b2..b675995 100644 --- a/selfforum-cgi/shared/Conf.pm +++ b/selfforum-cgi/shared/Conf.pm @@ -12,17 +12,14 @@ use strict; package Conf; -use vars qw(@ISA @EXPORT); - use XML::DOM; # ==================================================== # Funktionsexport # ==================================================== -require Exporter; -@ISA = qw(Exporter); -@EXPORT = qw(read_script_conf); +use base qw(Exporter); +@Conf::EXPORT = qw(read_script_conf); ################################ # sub read_script_conf @@ -31,12 +28,12 @@ require Exporter; ################################ sub read_script_conf ($$$) { - my ($Bin, $Shared, $Script) = @_; + my ($Config, $Shared, $Script) = @_; $Script =~ s/^(.*)\..*$/$1/; # Vornamen extrahieren my $common = "$Shared/common.xml"; # gemeinsame Konf-datei - my $group = "$Bin/config/common.xml"; # gemeinsame (Gruppen-)Konf-datei - my $special = "$Bin/config/$Script.xml"; # spezielle Konf-datei + my $group = "$Config/common.xml"; # gemeinsame (Gruppen-)Konf-datei + my $special = "$Config/$Script.xml"; # spezielle Konf-datei my %conf=(); # conf-Hash &parse_script_conf ($common , \%conf, $Script); # und los...