]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/poll.pm
web commit by PaulWise: add pabs' site/blog
[git.ikiwiki.info.git] / IkiWiki / Plugin / poll.pm
index 4eae6a349383e50edfa60b336cde3aca6a479cb3..63c93c62d9380fedbfa2954ee24ea9eac7f9c76d 100644 (file)
@@ -3,7 +3,7 @@ package IkiWiki::Plugin::poll;
 
 use warnings;
 use strict;
-use IkiWiki;
+use IkiWiki 2.00;
 
 sub import { #{{{
        hook(type => "preprocess", id => "poll", call => \&preprocess);
@@ -125,12 +125,12 @@ sub cgi ($) { #{{{
                IkiWiki::cgi_savesession($session);
                $oldchoice=$session->param($choice_param);
                if ($config{rcs}) {
-                       disable_commit_hook();
+                       IkiWiki::disable_commit_hook();
                        IkiWiki::rcs_commit($pagesources{$page}, "poll vote ($choice)",
                                IkiWiki::rcs_prepedit($pagesources{$page}),
                                $session->param("name"), $ENV{REMOTE_ADDR});
-                       enable_commit_hook();
-                       rcs_update();
+                       IkiWiki::enable_commit_hook();
+                       IkiWiki::rcs_update();
                }
                require IkiWiki::Render;
                IkiWiki::refresh();