more WebGUI::Paths fixes
This commit is contained in:
parent
033b4d7c0b
commit
9c613ab638
1 changed files with 3 additions and 2 deletions
|
|
@ -217,8 +217,9 @@ sub preloadAll {
|
|||
|
||||
require WebGUI::Pluggable;
|
||||
|
||||
my @exclusions = $class->preloadExclude;
|
||||
WebGUI::Pluggable::findAndLoad( 'WebGUI', {
|
||||
exclude => \( $class->preloadExclude ),
|
||||
exclude => \@exclusions,
|
||||
onLoadFail => sub { warn sprintf "Error loading %s: %s\n", @_ },
|
||||
});
|
||||
}
|
||||
|
|
@ -226,7 +227,7 @@ sub preloadAll {
|
|||
sub _readTextLines {
|
||||
my $file = shift;
|
||||
my @lines;
|
||||
open my $fh, '<', $file or croak "Cannot open $file: $!";
|
||||
open my $fh, '<', $file or return;
|
||||
while (my $line = <$fh>) {
|
||||
$line =~ s/#.*//;
|
||||
$line =~ s/^\s+//;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue