com web/wiki: don't show the voting for old revisions: dokuwiki/lib/plugins/doodle/syntax.php

From: Date: Tue, 17 Dec 2013 10:10:11 +0000
Subject: com web/wiki: don't show the voting for old revisions: dokuwiki/lib/plugins/doodle/syntax.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-17701@lists.php.net to get a copy of this message
Commit: a28ca77ac89ffdad4f8b2f54697587b13ec9bdf0 Author: Ferenc Kovacs <tyra3l@gmail.com> 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();

« previous php.webmaster (#17701) next »