aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-21 00:59:10 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-21 00:59:10 +0000
commitdee67e1d518894b75d1f6936eab6aca26d5bfa40 (patch)
tree25b969b2c64bd8b1f2bc471c0d57ca3d9eacaf3e
parenta3febfda7a1bc64ba247a241a2983643ae0b1b16 (diff)
downloadelgg-dee67e1d518894b75d1f6936eab6aca26d5bfa40.tar.gz
elgg-dee67e1d518894b75d1f6936eab6aca26d5bfa40.tar.bz2
Fixes #2310. Rewriting disable_registration to allow_registration in walled garden upgrade.
git-svn-id: http://code.elgg.org/elgg/trunk@8379 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/upgrades/2010050701.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/upgrades/2010050701.php b/engine/lib/upgrades/2010050701.php
index 554e10d8a..e327abdde 100644
--- a/engine/lib/upgrades/2010050701.php
+++ b/engine/lib/upgrades/2010050701.php
@@ -14,4 +14,8 @@ if (elgg_is_active_plugin('walledgarden')) {
set_config('walled_garden', FALSE);
}
+$disable_registration = elgg_get_config('disable_registration');
+$allow_registration = !$disable_registration;
+elgg_save_config('allow_registration', $allow_registration);
+
elgg_set_ignore_access($access);