Changeset 933

Show
Ignore:
Timestamp:
06/08/06 21:45:10
Author:
miyagawa
Message:

TruePermalink? now rewrites permalink, rather than link

Files:

Legend:

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

    r916 r933  
    4949    my($self, $context, $args) = @_; 
    5050 
    51     $self->rewrite(sub { $args->{entry}->link }, sub { $args->{entry}->link(@_) }, $args); 
     51    $self->rewrite(sub { $args->{entry}->permalink }, sub { $args->{entry}->permalink(@_) }, $args); 
    5252    for my $enclosure ($args->{entry}->enclosures) { 
    5353        $self->rewrite(sub { $enclosure->url }, sub { $enclosure->url( URI->new(@_) ) }, $args); 
     
    161161this plugin. 
    162162 
    163 This plugin rewrites I<link> attribute of C<$entry>, rather than 
    164 I<permalink>. If C<$entry> has enclosures, this plugin also tries t
    165 rewrite url of them. 
     163This plugin rewrites I<permalink> attribute of C<$entry>, while 
     164keeping I<link> as is. If C<$entry> has enclosures, this plugin als
     165tries to rewrite url of them. 
    166166 
    167167=head1 PATTERN FILES