From 3703fb86d686b7a111ec578870562f6334de3fc9 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 24 Sep 2009 18:11:06 -0500 Subject: [PATCH] address cached config objects by full file name --- lib/WebGUI/Config.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Config.pm b/lib/WebGUI/Config.pm index 486406e12..e1b340752 100644 --- a/lib/WebGUI/Config.pm +++ b/lib/WebGUI/Config.pm @@ -170,9 +170,9 @@ sub new { my $webguiPath = Cwd::realpath(shift); my $filename = shift; my $noCache = shift; - my $fullPath = $webguiPath.'/etc/'.$filename; - if (exists $config{$filename}) { - return $config{$filename}; + my $fullPath = Cwd::realpath($webguiPath.'/etc/'.$filename); + if (exists $config{$fullPath}) { + return $config{$fullPath}; } else { my $self = Config::JSON->new($fullPath); register($self, $class);