/[webpac2]/trunk/lib/WebPAC/Normalize.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/WebPAC/Normalize.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 260 by dpavlin, Fri Dec 16 14:40:55 2005 UTC revision 268 by dpavlin, Fri Dec 16 21:09:42 2005 UTC
# Line 170  sub data_structure { Line 170  sub data_structure {
170                  $log->debug("cache miss, creating");                  $log->debug("cache miss, creating");
171          }          }
172    
         undef $self->{'currnet_filename'};  
         undef $self->{'headline'};  
   
173          my @sorted_tags;          my @sorted_tags;
174          if ($self->{tags_by_order}) {          if ($self->{tags_by_order}) {
175                  @sorted_tags = @{$self->{tags_by_order}};                  @sorted_tags = @{$self->{tags_by_order}};
# Line 301  but, filters can also have variable numb Line 298  but, filters can also have variable numb
298    
299  =cut  =cut
300    
301    my $warn_once;
302    
303  sub parse {  sub parse {
304          my $self = shift;          my $self = shift;
305    
# Line 381  sub parse { Line 380  sub parse {
380                          $out = $self->{'filter'}->{$filter_name}->(@filter_args);                          $out = $self->{'filter'}->{$filter_name}->(@filter_args);
381                          return unless(defined($out));                          return unless(defined($out));
382                          $log->debug("filter result: $out");                          $log->debug("filter result: $out");
383                  } else {                  } elsif (! $warn_once->{$filter_name}) {
384                          $log->warn("trying to use undefined filter $filter_name");                          $log->warn("trying to use undefined filter $filter_name");
385                            $warn_once->{$filter_name}++;
386                  }                  }
387          }          }
388    

Legend:
Removed from v.260  
changed lines
  Added in v.268

  ViewVC Help
Powered by ViewVC 1.1.26