show wiki controls only to owner and whitespace fixes

This commit is contained in:
Mario Vavti
2016-11-14 12:01:16 +01:00
parent cf5c803fe0
commit 192df273cc
2 changed files with 8 additions and 6 deletions

View File

@@ -917,7 +917,7 @@ function widget_wiki_list($arr) {
'$channel' => $channel['channel_address'],
'$wikis' => $wikis['wikis'],
// If the observer is the local channel owner, show the wiki controls
'$showControls' => ((local_channel() === intval($channel['channel_id'])) ? true : false)
'$owner' => ((local_channel() === intval($channel['channel_id'])) ? true : false)
));
}
return '';