Changeset 478

Show
Ignore:
Timestamp:
04/02/06 04:52:14
Author:
miyagawa
Message:

only load .pl

Files:

Legend:

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

    r474 r478  
    3232    my $dir = $self->assets_dir; 
    3333    my $dh = DirHandle->new($dir) or $context->error("$dir: $!"); 
    34     for my $file (grep -f $_->[0] && $_->[0] !~ /~$/, 
     34    for my $file (grep -f $_->[0] && $_->[0] =~ /\.pl$/, 
    3535                  map [ File::Spec->catfile($dir, $_), $_ ], $dh->read) { 
    3636        $self->load_plugin(@$file);