use config system.server_role and deprecate 'UNO'

This commit is contained in:
redmatrix
2016-08-07 17:29:35 -07:00
parent e1659b0725
commit 5243dd153b
24 changed files with 135 additions and 71 deletions

View File

@@ -245,10 +245,11 @@ class ThreadItem {
);
}
$server_role = get_config('system','server_role');
$has_bookmarks = false;
if(is_array($item['term'])) {
foreach($item['term'] as $t) {
if(!UNO && $t['ttype'] == TERM_BOOKMARK)
if(($server_role != 'basic') && ($t['ttype'] == TERM_BOOKMARK))
$has_bookmarks = true;
}
}