aboutsummaryrefslogtreecommitdiffstats
path: root/include/features.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-04 21:38:39 +0200
committerMario Vavti <mario@mariovavti.com>2018-10-04 21:38:39 +0200
commitd4af745fc8000be9fcc198d3d0205a6b134e374c (patch)
tree9f3742fcf21e5d3ba48ec4922de43d07f1e97031 /include/features.php
parent6e03104e3ee785954b4f755240d1595f702522b2 (diff)
downloadvolse-hubzilla-d4af745fc8000be9fcc198d3d0205a6b134e374c.tar.gz
volse-hubzilla-d4af745fc8000be9fcc198d3d0205a6b134e374c.tar.bz2
volse-hubzilla-d4af745fc8000be9fcc198d3d0205a6b134e374c.zip
move *_divmore_height setting to the module extra_settings, and fix issue where feature settings were not synced if rpath was provided
Diffstat (limited to 'include/features.php')
-rw-r--r--include/features.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/features.php b/include/features.php
index fc4877424..05ce3db32 100644
--- a/include/features.php
+++ b/include/features.php
@@ -47,7 +47,15 @@ function feature_level($feature,$def) {
function process_module_features_get($uid, $features) {
unset($features[0]);
foreach($features as $f) {
- $arr[] = array('feature_' . $f[0],$f[1],((intval(feature_enabled($uid, $f[0]))) ? "1" : ''),$f[2], array(t('Off'),t('On')), (($f[4] === false) ? '' : 'disabled'));
+ $arr[] = [
+ 'feature_' . $f[0],
+ $f[1],
+ ((intval(feature_enabled($uid, $f[0]))) ? "1" : ''),
+ $f[2],
+ [t('Off'),t('On')],
+ (($f[4] === false) ? '' : 'disabled'),
+ $f[5]
+ ];
}
return $arr;
}
@@ -61,8 +69,6 @@ function process_module_features_post($uid, $features, $post_arr) {
else
set_pconfig($uid,'feature', $k, '');
}
- if($post_arr['rpath'])
- goaway($post_arr['rpath']);
}
function get_features($filtered = true, $level = (-1)) {