Some more

This commit is contained in:
Michael
2017-11-07 21:53:11 +00:00
parent ab73dbf346
commit 5a6fa4ae87
5 changed files with 22 additions and 36 deletions

View File

@@ -2273,10 +2273,7 @@ function admin_page_features(App $a) {
$arr[$fname][0] = $fdata[0];
foreach (array_slice($fdata,1) as $f) {
$set = Config::get('feature',$f[0]);
if ($set === false) {
$set = $f[3];
}
$set = Config::get('feature',$f[0], $f[3]);
$arr[$fname][1][] = array(
array('feature_' .$f[0],$f[1],$set,$f[2],array(t('Off'), t('On'))),
array('featurelock_' .$f[0],sprintf(t('Lock feature %s'),$f[1]),(($f[4] !== false) ? "1" : ''),'',array(t('Off'), t('On')))