Changeset 837

Show
Ignore:
Timestamp:
05/29/06 16:01:02
Author:
miyagawa
Message:

EntryFullText?: move extract_after_hook before date parsing so that hook can modify date values before parse. Fixes #264

Files:

Legend:

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

    r788 r837  
    224224        @{$data}{@capture} = @match; 
    225225 
     226        if ($self->{extract_after_hook}) { 
     227            eval $self->{extract_after_hook}; 
     228            Plagger->context->error($@) if $@; 
     229        } 
     230 
    226231        if ($data->{date}) { 
    227232            if (my $format = $self->{extract_date_format}) { 
     
    236241        } 
    237242 
    238         if ($self->{extract_after_hook}) { 
    239             eval $self->{extract_after_hook}; 
    240             Plagger->context->error($@) if $@; 
    241         } 
    242  
    243243        return $data; 
    244244    }