Changeset 933
- Timestamp:
- 06/08/06 21:45:10
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Filter/TruePermalink.pm
r916 r933 49 49 my($self, $context, $args) = @_; 50 50 51 $self->rewrite(sub { $args->{entry}-> link }, sub { $args->{entry}->link(@_) }, $args);51 $self->rewrite(sub { $args->{entry}->permalink }, sub { $args->{entry}->permalink(@_) }, $args); 52 52 for my $enclosure ($args->{entry}->enclosures) { 53 53 $self->rewrite(sub { $enclosure->url }, sub { $enclosure->url( URI->new(@_) ) }, $args); … … 161 161 this plugin. 162 162 163 This plugin rewrites I< link> attribute of C<$entry>, rather than164 I<permalink>. If C<$entry> has enclosures, this plugin also tries to165 rewrite url of them.163 This plugin rewrites I<permalink> attribute of C<$entry>, while 164 keeping I<link> as is. If C<$entry> has enclosures, this plugin also 165 tries to rewrite url of them. 166 166 167 167 =head1 PATTERN FILES
