]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2310. Rewriting disable_registration to allow_registration in walled garden...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 21 Feb 2011 00:59:10 +0000 (00:59 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 21 Feb 2011 00:59:10 +0000 (00:59 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8379 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/upgrades/2010050701.php

index 554e10d8aa0014ce52ebb2e034be5419349c3305..e327abdde1e01fa7d80b062e357d35abd91af6a8 100644 (file)
@@ -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);