Skip to content

Commit

Permalink
[RT 34401] Applied patch by Jae Gangemi, who fixed code references in
Browse files Browse the repository at this point in the history
@inc on Win32 systems.
  • Loading branch information
mschilli committed Sep 8, 2009
1 parent 99d62ae commit 14ae276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
Expand Up @@ -14,6 +14,8 @@
* (ms) [RT 34400] New :nostrict target which allows redefining a
category within a Log4perl configuration file without error
or even a warning.
* (ms) [RT 34401] Applied patch by Jae Gangemi, who fixed
code references in @INC on Win32 systems.

1.24 (2009/07/08)
* (ms) Fixed bug with Log::Log4perl::Util::tmpfile_name which
Expand Down
4 changes: 2 additions & 2 deletions lib/Log/Log4perl/Util.pm
Expand Up @@ -26,9 +26,9 @@ sub module_available { # Check if a module is available
# trying to implement them as diligently as possible. For
# details, check "perldoc -f require".
if(ref $dir eq "CODE") {
return 1 if $dir->($dir, $relpath);
return 1 if $dir->($dir, $relpath_with_forward_slashes);
} elsif(ref $dir eq "ARRAY") {
return 1 if $dir->[0]->($dir, $relpath);
return 1 if $dir->[0]->($dir, $relpath_with_forward_slashes);
} elsif(ref $dir and
ref $dir !~ /^(GLOB|SCALAR|HASH|REF|LVALUE)$/) {
return 1 if $dir->INC();
Expand Down

0 comments on commit 14ae276

Please sign in to comment.