disable voting in blocks, layouts and webpages

This commit is contained in:
Mario Vavti
2015-04-29 21:36:53 +02:00
parent e56b8fdfaf
commit 310d122901
4 changed files with 7 additions and 2 deletions

View File

@@ -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']) {