diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 23:00:44 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 23:00:44 -0400 |
commit | 6a64d133526b25b46828bc75c2b3b99c0ab7e331 (patch) | |
tree | c55561d25abd8b24c4fec42fed1c99ac861ae629 /IkiWiki | |
parent | 4f06e7402ab09ebc1baa2ff0b3af50ccfc37a67e (diff) |
allow --dumpsetup to be used w/o specifying srcdir and destdir
shortcut tried to use srcdir in checkconfig; change it to not so this will
work.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/shortcut.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/shortcut.pm b/IkiWiki/Plugin/shortcut.pm index 8df60cfe2..dfc3cd7c7 100644 --- a/IkiWiki/Plugin/shortcut.pm +++ b/IkiWiki/Plugin/shortcut.pm @@ -6,11 +6,11 @@ use strict; use IkiWiki 2.00; sub import { #{{{ - hook(type => "checkconfig", id => "shortcut", call => \&checkconfig); + hook(type => "refresh", id => "shortcut", call => \&refresh); hook(type => "preprocess", id => "shortcut", call => \&preprocess_shortcut); } #}}} -sub checkconfig () { #{{{ +sub refresh () { #{{{ # Preprocess the shortcuts page to get all the available shortcuts # defined before other pages are rendered. my $srcfile=srcfile("shortcuts.mdwn", 1); |