fix pluggable and config

This commit is contained in:
Graham Knop 2010-03-11 08:27:10 -06:00
parent 5a4e083d85
commit 39adb44007
2 changed files with 3 additions and 2 deletions

View file

@ -158,7 +158,7 @@ sub new {
my $filename = shift;
my $noCache = shift;
if (!File::Spec->file_name_is_absolute($filename)) {
Cwd::realpath($filename = File::Spec->catfile(WebGUI::Paths->configBase, $filename));
$filename = Cwd::realpath(File::Spec->catfile(WebGUI::Paths->configBase, $filename));
}
if (exists $config{$filename}) {
return $config{$filename};