aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-09 23:39:53 -0800
committerredmatrix <git@macgirvin.com>2016-01-09 23:39:53 -0800
commit23c7086605d54fc6d9a537b20fc3377a52b24ee8 (patch)
treead7c9ba78f82aa67ba6c4846a857dfd9c7355cdd
parentb00c22916a0eefd464833ff6debad6f0684fad36 (diff)
downloadvolse-hubzilla-23c7086605d54fc6d9a537b20fc3377a52b24ee8.tar.gz
volse-hubzilla-23c7086605d54fc6d9a537b20fc3377a52b24ee8.tar.bz2
volse-hubzilla-23c7086605d54fc6d9a537b20fc3377a52b24ee8.zip
add locked features to siteinfo to assist in debugging
-rw-r--r--include/network.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php
index e09908d31..94298abef 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1792,6 +1792,17 @@ function get_site_info() {
$hide_in_statistics = intval(get_config('system','hide_in_statistics'));
$site_expire = intval(get_config('system', 'default_expire_days'));
+ load_config('feature_lock');
+ $locked_features = array();
+ if(is_array($a->config['feature_lock']) && count($a->config['feature_lock'])) {
+ foreach($a->config['feature_lock'] as $k => $v) {
+ if($k === 'config_loaded')
+ continue;
+ $locked_features[$k] = intval($v);
+ }
+ }
+
+
$data = Array(
'version' => $version,
@@ -1803,9 +1814,10 @@ function get_site_info() {
'invitation_only' => intval(get_config('system','invitation_only')),
'directory_mode' => $directory_mode[get_config('system','directory_mode')],
'language' => get_config('system','language'),
- 'rss_connections' => get_config('system','feed_contacts'),
+ 'rss_connections' => intval(get_config('system','feed_contacts')),
'expiration' => $site_expire,
'default_service_restrictions' => $service_class,
+ 'locked_features' => $locked_features,
'admin' => $admin,
'site_name' => (($site_name) ? $site_name : ''),
'platform' => PLATFORM_NAME,