diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-26 18:52:02 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-26 18:52:02 +0000 |
commit | 44fd0e29f4d856058f3bac3a3581d00919420169 (patch) | |
tree | 5f3752a8210bc6bc22ef6a36fa782d65e3603bf8 /src/SemanticScuttle/Service/Vote.php | |
parent | 0af3f228ac507c55a2c864aecf41ee82b2af9c5b (diff) | |
download | semanticscuttle-44fd0e29f4d856058f3bac3a3581d00919420169.tar.gz semanticscuttle-44fd0e29f4d856058f3bac3a3581d00919420169.tar.bz2 |
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
Diffstat (limited to 'src/SemanticScuttle/Service/Vote.php')
-rw-r--r-- | src/SemanticScuttle/Service/Vote.php | 4 |
1 files changed, 3 insertions, 1 deletions
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; |