diff --git a/IkiWiki.pm b/IkiWiki.pm index 85d8eea68..974e36902 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -544,12 +544,12 @@ sub loadplugins () { } if ($config{rcs}) { - if (exists $IkiWiki::hooks{rcs}) { + if (exists $hooks{rcs}) { error(gettext("cannot use multiple rcs plugins")); } loadplugin($config{rcs}); } - if (! exists $IkiWiki::hooks{rcs}) { + if (! exists $hooks{rcs}) { loadplugin("norcs"); }