Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ikiwiki plugin: Support IkiWiki 3.00.

  • Loading branch information...
commit 07c81b682d3050f4c433d4551ee7cb3430b0fda7 1 parent f8316da
@mwolson mwolson authored
Showing with 9 additions and 7 deletions.
  1. +9 −7 contrib/ikiwiki/IkiWiki/Plugin/muse.pm
View
16 contrib/ikiwiki/IkiWiki/Plugin/muse.pm
@@ -12,10 +12,11 @@ package IkiWiki::Plugin::muse;
use warnings;
use strict;
-use IkiWiki 2.00;
-use Date::Format qw();
-use Encode qw();
-use File::Temp qw();
+use IkiWiki 3.00;
+
+use Date::Format ();
+use Encode ();
+use File::Temp ();
sub import {
hook(type => "getsetup", id => "muse", call => \&getsetup);
@@ -44,8 +45,8 @@ sub getsetup () {
sub scan (@) {
my %params=@_;
return unless pagetype($pagesources{$params{page}}) eq 'muse';
- my $canmeta = IkiWiki::Plugin::meta->can("preprocess");
- my $cantag = IkiWiki::Plugin::tag->can("preprocess_tag");
+ my $canmeta = UNIVERSAL::can('IkiWiki::Plugin::meta', 'preprocess');
+ my $cantag = UNIVERSAL::can('IkiWiki::Plugin::tag', 'preprocess_tag');
return unless $canmeta || $cantag;
my $fun;
@@ -129,8 +130,9 @@ sub filter (@) {
unlink $filename;
};
if ($@) {
+ my $ret = $@;
unlink $filename;
- die $@;
+ die $ret;
}
return Encode::decode_utf8($content);
}
Please sign in to comment.
Something went wrong with that request. Please try again.