Skip to content

Commit

Permalink
BUGFIX: Incorrect function call for markAsVoted
Browse files Browse the repository at this point in the history
Some left over legacy code slipped through when merging. `Poll::markasVoted()` should be called through the `voteHandler` instead of relying on hard coded cookie storing functionality.
  • Loading branch information
tomspeak committed Jan 27, 2014
1 parent 595373c commit 0445395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function getMaxVotes() {
* Mark the the poll has been voted by the user, which determined by browser cookie
*/
function markAsVoted() {
Cookie::set(self::COOKIE_PREFIX . $this->ID, 1);
return $this->voteHandler->markAsVoted();
}

/**
Expand Down

0 comments on commit 0445395

Please sign in to comment.