diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-11 21:37:12 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-11 21:37:12 +0000 |
commit | 25c192e75d52f5bd7db4da22bb9213421fa36b4c (patch) | |
tree | e2ef3042e4b048714a08d273700a426ac6020b1a /engine/lib/upgrades | |
parent | e210f797ff2dda5785e64380234f1ee876bc5c12 (diff) | |
download | elgg-25c192e75d52f5bd7db4da22bb9213421fa36b4c.tar.gz elgg-25c192e75d52f5bd7db4da22bb9213421fa36b4c.tar.bz2 |
Do not display site pages when in Walled Garden mode, excepting system-defined whitelist.
git-svn-id: http://code.elgg.org/elgg/trunk@6004 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/upgrades')
-rw-r--r-- | engine/lib/upgrades/2010050701.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/upgrades/2010050701.php b/engine/lib/upgrades/2010050701.php index 33e4b5bae..4a02a77c6 100644 --- a/engine/lib/upgrades/2010050701.php +++ b/engine/lib/upgrades/2010050701.php @@ -8,8 +8,10 @@ $access = elgg_set_ignore_access(TRUE); if (is_plugin_enabled('walledgarden')) { disable_plugin('walledgarden'); set_config('allow_registration', FALSE); + set_config('walled_garden', TRUE); } else { set_config('allow_registration', TRUE); + set_config('walled_garden', FALSE); } elgg_set_ignore_access($access); |