separate the 'expert' feature into 'advanced_theming' and 'advanced_dirsearch'. Hide both features unless techlevel > 3.

This commit is contained in:
redmatrix
2016-09-01 19:01:02 -07:00
parent 720f1d7123
commit af87038150
5 changed files with 41 additions and 17 deletions

View File

@@ -13,7 +13,7 @@ function findpeople_widget() {
}
}
$advanced_search = ((local_channel() && get_pconfig(local_channel(),'feature','expert')) ? t('Advanced') : false);
$advanced_search = ((local_channel() && feature_enabled(local_channel(),'advanced_dirsearch')) ? t('Advanced') : false);
return replace_macros(get_markup_template('peoplefind.tpl'),array(
'$findpeople' => t('Find Channels'),