Changeset 1805

Show
Ignore:
Timestamp:
10/26/06 14:51:21
Author:
miyagawa
Message:

EntryFullText?: add log if there's no extract nor extract_xpath to avoid typoes

Files:

Legend:

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

    r1741 r1805  
    246246    my($self, $args) = @_; 
    247247    my $data; 
     248 
     249    unless ($self->{extract} || $self->{extract_xpath}) { 
     250        Plagger->context->log(error => "YAML doesn't have either 'extract' nor 'extract_xpath'"); 
     251        return; 
     252    } 
    248253 
    249254    if ($self->{extract}) {