aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-14 11:55:52 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-14 11:56:42 +0100
commitf79c6190654ec3912abc34eb0568331983a968a3 (patch)
tree860dd4ca0914a0364fb7d27bd9e416e2829af2e4 /include/widgets.php
parenta65ebbb3193b05edcd29c89038e21ba6a856af20 (diff)
downloadvolse-hubzilla-f79c6190654ec3912abc34eb0568331983a968a3.tar.gz
volse-hubzilla-f79c6190654ec3912abc34eb0568331983a968a3.tar.bz2
volse-hubzilla-f79c6190654ec3912abc34eb0568331983a968a3.zip
wiki: do not show revert buttons if we do not have write perms and minor cleanup
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php
index f24bb488b..919ea58a0 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -958,7 +958,8 @@ function widget_wiki_page_history($arr) {
$pageHistory = wiki_page_history(array('resource_id' => $resource_id, 'pageUrlName' => $pageUrlName));
return replace_macros(get_markup_template('wiki_page_history.tpl'), array(
- '$pageHistory' => $pageHistory['history']
+ '$pageHistory' => $pageHistory['history'],
+ '$permsWrite' => $arr['permsWrite']
));
}