aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/site
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/site')
-rw-r--r--actions/admin/site/update_advanced.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/actions/admin/site/update_advanced.php b/actions/admin/site/update_advanced.php
index 7e6bd0cc6..e65919ce1 100644
--- a/actions/admin/site/update_advanced.php
+++ b/actions/admin/site/update_advanced.php
@@ -56,6 +56,13 @@ if (datalist_get('default_site')) {
} else {
set_config('allow_registration', FALSE, $site->getGUID());
}
+
+ // setup walled garden
+ if (get_input('walled_garden', FALSE)) {
+ set_config('walled_garden', TRUE, $site->getGUID());
+ } else {
+ set_config('walled_garden', FALSE, $site->getGUID());
+ }
$https_login = get_input('https_login');
if ($https_login) {