Changeset 1076

Show
Ignore:
Timestamp:
07/13/06 01:12:07
Author:
miyagawa
Message:

allow plugin_path as a single scalar

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger.pm

    r1026 r1076  
    160160    my($self, @plugins) = @_; 
    161161 
    162     for my $path (@{ $self->conf->{plugin_path} || [] }) { 
     162    my $plugin_path = $self->conf->{plugin_path} || []; 
     163       $plugin_path = [ $plugin_path ] unless ref $plugin_path; 
     164 
     165    for my $path (@$plugin_path) { 
    163166        opendir my $dir, $path or do { 
    164167            $self->log(warn => "$path: $!");