]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/ddate.pm
move userlink to IkiWiki.pm
[ikiwiki.git] / IkiWiki / Plugin / ddate.pm
index 862d4da5b180146356757dff5600977a2df41966..6b67f420232adcc835800c5b4729a47a5a7eb1a6 100644 (file)
@@ -1,11 +1,12 @@
 #!/usr/bin/perl
 # Discordian date support fnord ikiwiki.
 package IkiWiki::Plugin::ddate;
 #!/usr/bin/perl
 # Discordian date support fnord ikiwiki.
 package IkiWiki::Plugin::ddate;
-use IkiWiki;
+
+use IkiWiki 2.00;
 no warnings;
 
 sub import { #{{{
 no warnings;
 
 sub import { #{{{
-       hook(type => "checkconfig", id => "skeleton", call => \&checkconfig);
+       hook(type => "checkconfig", id => "ddate", call => \&checkconfig);
 } # }}}
 
 sub checkconfig () { #{{{
 } # }}}
 
 sub checkconfig () { #{{{
@@ -15,7 +16,7 @@ sub checkconfig () { #{{{
        }
 } #}}}
 
        }
 } #}}}
 
-sub IkiWiki::displaytime ($) { #{{{
+sub IkiWiki::displaytime ($;$) { #{{{
        my $time=shift;
        eval q{
                use DateTime;
        my $time=shift;
        eval q{
                use DateTime;