aboutsummaryrefslogtreecommitdiffstats
path: root/include/wiki.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-13 15:16:27 -0800
committerzotlabs <mike@macgirvin.com>2016-12-13 15:16:27 -0800
commita65ebbb3193b05edcd29c89038e21ba6a856af20 (patch)
tree64ebc36c9592229deb2fb8d5dfe14ffedcece6b8 /include/wiki.php
parentbc78cf8a8712198fe0e8f571cce2cec984d84a99 (diff)
parent2bcc41c851355e27badc07ed241e16f92f16fb5c (diff)
downloadvolse-hubzilla-a65ebbb3193b05edcd29c89038e21ba6a856af20.tar.gz
volse-hubzilla-a65ebbb3193b05edcd29c89038e21ba6a856af20.tar.bz2
volse-hubzilla-a65ebbb3193b05edcd29c89038e21ba6a856af20.zip
Merge branch '2.0RC' of https://github.com/redmatrix/hubzilla into 2.0RC_merge
Diffstat (limited to 'include/wiki.php')
-rw-r--r--include/wiki.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/wiki.php b/include/wiki.php
index 30685a0bf..332d4efe0 100644
--- a/include/wiki.php
+++ b/include/wiki.php
@@ -14,12 +14,13 @@ function wiki_list($channel, $observer_hash) {
intval($channel['channel_id'])
);
if($wikis) {
- foreach($wikis as &$w) {
+ foreach($wikis as &$w) {
$w['rawName'] = get_iconfig($w, 'wiki', 'rawName');
$w['htmlName'] = get_iconfig($w, 'wiki', 'htmlName');
$w['urlName'] = get_iconfig($w, 'wiki', 'urlName');
$w['path'] = get_iconfig($w, 'wiki', 'path');
$w['mimeType'] = get_iconfig($w, 'wiki', 'mimeType');
+ $w['lock'] = (($w['allow_cid'] || $w['allow_gid'] || $w['deny_cid'] || $w['deny_gid']) ? true : false);
}
}
// TODO: query db for wikis the observer can access. Return with two lists, for read and write access