diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-12-14 11:55:52 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-12-14 11:55:52 +0100 |
commit | 028935a318e5848542faa551f3d39bbe8b365447 (patch) | |
tree | bb9d6b47318393c94093d838364cd9f81d16cc22 /include/widgets.php | |
parent | 62353191e8759263d6279822d369ac1ae22f0a5f (diff) | |
download | volse-hubzilla-028935a318e5848542faa551f3d39bbe8b365447.tar.gz volse-hubzilla-028935a318e5848542faa551f3d39bbe8b365447.tar.bz2 volse-hubzilla-028935a318e5848542faa551f3d39bbe8b365447.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.php | 3 |
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'] )); } |