From 310d1229010c14487eaeaa70541f9bf96c60627a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 29 Apr 2015 21:36:53 +0200 Subject: disable voting in blocks, layouts and webpages --- include/conversation.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/conversation.php') diff --git a/include/conversation.php b/include/conversation.php index 8c9029a43..fb012667e 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1095,6 +1095,8 @@ function status_editor($a, $x, $popup = false) { // $plaintext = false; $voting = feature_enabled(local_channel(), 'consensus_tools'); + if(x($x, 'novoting')) + $voting = false; $mimeselect = ''; if(array_key_exists('mimetype', $x) && $x['mimetype']) { -- cgit v1.2.3