aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-29 20:59:00 -0700
committerredmatrix <git@macgirvin.com>2016-06-29 20:59:00 -0700
commit9ef710c557fcc4ea01c87e03fd7a477eb037f09c (patch)
treeca181b89bb548fc4badbf2045c6320593f87e59f /include/conversation.php
parentdf4ff26845ea2868998c6a05397dc8e3aa07ba98 (diff)
downloadvolse-hubzilla-9ef710c557fcc4ea01c87e03fd7a477eb037f09c.tar.gz
volse-hubzilla-9ef710c557fcc4ea01c87e03fd7a477eb037f09c.tar.bz2
volse-hubzilla-9ef710c557fcc4ea01c87e03fd7a477eb037f09c.zip
provide wiki as a feature (default is on so there aren't any surprises) and add to channel menu and profile tabs
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/conversation.php b/include/conversation.php
index d2d4ffca0..957dbf8e9 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1703,13 +1703,19 @@ function profile_tabs($a, $is_owner = false, $nickname = null){
'title' => t('Manage Webpages'),
'id' => 'webpages-tab',
);
- } else {
- /**
- * @FIXME we probably need a listing of events that were created by
- * this channel and are visible to the observer
- */
+ }
+
+ if(feature_enabled($uid,'wiki') && (! UNO)) {
+ $tabs[] = array(
+ 'label' => t('Wiki'),
+ 'url' => z_root() . '/wiki/' . $nickname,
+ 'sel' => ((argv(0) == 'wiki') ? 'active' : ''),
+ 'title' => t('Wiki'),
+ 'id' => 'wiki-tab',
+ );
}
+
$arr = array('is_owner' => $is_owner, 'nickname' => $nickname, 'tab' => (($tab) ? $tab : false), 'tabs' => $tabs);
call_hooks('profile_tabs', $arr);