]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/shortcut.pm
memoization for injected RPC functions is a very, very good thing
[git.ikiwiki.info.git] / IkiWiki / Plugin / shortcut.pm
index 7b89bf879cdf48be4421a205399cb27a07a489f8..ca527ce3ca533a12ed4dc2bb3c1ae73a148383db 100644 (file)
@@ -3,7 +3,7 @@ package IkiWiki::Plugin::shortcut;
 
 use warnings;
 use strict;
-use IkiWiki;
+use IkiWiki 2.00;
 
 sub import { #{{{
        hook(type => "checkconfig", id => "shortcut", call => \&checkconfig);
@@ -53,7 +53,7 @@ sub shortcut_expand ($$@) { #{{{
        my $text=join(" ", @params);
        my $encoded_text=$text;
        $encoded_text=~s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;
-       
+
        $text=~s/_/ /g;
        if (defined $desc) {
                $desc=~s/\%s/$text/g;