Skip to content
Permalink
Browse files

more WebGUI::Paths fixes

  • Loading branch information...
Graham Knop
Graham Knop committed Apr 19, 2010
1 parent 033b4d7 commit 9c613ab6380d40a786c929d56e3b2a30dc933c3e
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/WebGUI/Paths.pm
@@ -217,16 +217,17 @@ 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", @_ },
});
}

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+//;

0 comments on commit 9c613ab

Please sign in to comment.
You can’t perform that action at this time.