From dee67e1d518894b75d1f6936eab6aca26d5bfa40 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 21 Feb 2011 00:59:10 +0000 Subject: 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 --- engine/lib/upgrades/2010050701.php | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3