Commit: a28ca77ac89ffdad4f8b2f54697587b13ec9bdf0 Author: Ferenc Kovacs <[email protected]> Tue, 17 Dec 2013 11:10:11 +0100 Parents: ec262150419828e09056d8a350a5d0095320e570 Branches: master
Link: http://git.php.net/?p=web/wiki.git;a=commitdiff;h=a28ca77ac89ffdad4f8b2f54697587b13ec9bdf0 Log: don't show the voting for old revisions Changed paths: M dokuwiki/lib/plugins/doodle/syntax.php Diff: diff --git a/dokuwiki/lib/plugins/doodle/syntax.php b/dokuwiki/lib/plugins/doodle/syntax.php index 050d10d..9811e73 100755 --- a/dokuwiki/lib/plugins/doodle/syntax.php +++ b/dokuwiki/lib/plugins/doodle/syntax.php @@ -228,7 +228,7 @@ class syntax_plugin_doodle extends DokuWiki_Syntax_Plugin } // ----- FORM ACTIONS (only allowed when showing the most recent version of the page, not when editing) ----- $formId = 'doodle__form__'.cleanID($this->params['title']); - if ($ACT == 'show' && $_REQUEST['formId'] == $formId && $can_vote) { + if ($ACT == 'show' && $_REQUEST['formId'] == $formId && $REV == false && $can_vote) { // ---- cast new vote if (!empty($_REQUEST['cast__vote'])) { $this->castVote(); -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
