wiki: do not show revert buttons if we do not have write perms and minor cleanup

This commit is contained in:
Mario Vavti
2016-12-14 11:55:52 +01:00
parent 62353191e8
commit 028935a318
5 changed files with 13 additions and 19 deletions

View File

@@ -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']
));
}