From 44fd0e29f4d856058f3bac3a3581d00919420169 Mon Sep 17 00:00:00 2001 From: cweiske Date: Mon, 26 Oct 2009 18:52:02 +0000 Subject: introduce voting config value and provide current user voting status in getBookmarks() git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@431 b3834d28-1941-0410-a4f8-b48e95affb8f --- src/SemanticScuttle/Service/Vote.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/SemanticScuttle/Service/Vote.php') diff --git a/src/SemanticScuttle/Service/Vote.php b/src/SemanticScuttle/Service/Vote.php index 7adf549..6db940c 100644 --- a/src/SemanticScuttle/Service/Vote.php +++ b/src/SemanticScuttle/Service/Vote.php @@ -221,7 +221,9 @@ class SemanticScuttle_Service_Vote extends SemanticScuttle_DbService */ public function vote($bookmark, $user, $vote = 1) { - //FIXME: check if voting is enabled (global conf var) + if ($GLOBALS['enableVoting'] == false) { + return false; + } if ($this->hasVoted($bookmark, $user)) { return false; -- cgit v1.2.3-54-g00ecf