aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-04-29 21:36:53 +0200
committerMario Vavti <mario@mariovavti.com>2015-04-29 21:36:53 +0200
commit310d1229010c14487eaeaa70541f9bf96c60627a (patch)
tree7762610ad0c691acc495f7b1edf576cff21c7739
parente56b8fdfaf0c7d4ad1d363639efac7863fe21f93 (diff)
downloadvolse-hubzilla-310d1229010c14487eaeaa70541f9bf96c60627a.tar.gz
volse-hubzilla-310d1229010c14487eaeaa70541f9bf96c60627a.tar.bz2
volse-hubzilla-310d1229010c14487eaeaa70541f9bf96c60627a.zip
disable voting in blocks, layouts and webpages
-rw-r--r--include/conversation.php2
-rw-r--r--mod/blocks.php1
-rw-r--r--mod/layouts.php3
-rw-r--r--mod/webpages.php3
4 files changed, 7 insertions, 2 deletions
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']) {
diff --git a/mod/blocks.php b/mod/blocks.php
index 23a66f8d9..56da9caf7 100644
--- a/mod/blocks.php
+++ b/mod/blocks.php
@@ -95,6 +95,7 @@ function blocks_content(&$a) {
'ptlabel' => t('Block Name'),
'profile_uid' => intval($owner),
'expanded' => true,
+ 'novoting' => true
);
if($_REQUEST['title'])
diff --git a/mod/layouts.php b/mod/layouts.php
index 1d33ba845..2e45362ba 100644
--- a/mod/layouts.php
+++ b/mod/layouts.php
@@ -121,7 +121,8 @@ function layouts_content(&$a) {
'ptlabel' => t('Layout Name'),
'profile_uid' => intval($owner),
'expanded' => true,
- 'placeholdertitle' => t('Layout Description (Optional)')
+ 'placeholdertitle' => t('Layout Description (Optional)'),
+ 'novoting' => true
);
if($_REQUEST['title'])
diff --git a/mod/webpages.php b/mod/webpages.php
index 24d7b88b3..859c93fde 100644
--- a/mod/webpages.php
+++ b/mod/webpages.php
@@ -113,7 +113,8 @@ function webpages_content(&$a) {
'profile_uid' => intval($owner),
'mimetype' => $mimetype,
'layout' => $layout,
- 'expanded' => true
+ 'expanded' => true,
+ 'novoting' => true
);
if($_REQUEST['title'])