diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-09 13:31:59 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-09 13:31:59 +0000 |
commit | 8ba402da459956a29e47df6598fe778cfea0f8d3 (patch) | |
tree | a0ddc1d11ee77ad43fef9343b707c3467d0a133d /engine/lib/upgrades/2010050701.php | |
parent | 983d66229e130f18e71dd13ead5b673cc5bb14cc (diff) | |
download | elgg-8ba402da459956a29e47df6598fe778cfea0f8d3.tar.gz elgg-8ba402da459956a29e47df6598fe778cfea0f8d3.tar.bz2 |
Refs #3241 cleaned up upgrade sequence so that we don't need special catch for that one upgrade created during 1.7 development. It doesn't hurt running it twice so sites currently using svn trunk will not be negatively affected.
git-svn-id: http://code.elgg.org/elgg/trunk@8964 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/upgrades/2010050701.php')
-rw-r--r-- | engine/lib/upgrades/2010050701.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/engine/lib/upgrades/2010050701.php b/engine/lib/upgrades/2010050701.php deleted file mode 100644 index b92d6a668..000000000 --- a/engine/lib/upgrades/2010050701.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php -/** - * Removes the Walled Garden plugin in favor of new system settings - */ - -$access = elgg_set_ignore_access(TRUE); - -if (elgg_is_active_plugin('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); -} - -// this was for people who manually set the config option -$disable_registration = elgg_get_config('disable_registration'); -if ($disable_registration !== null) { - $allow_registration = !$disable_registration; - elgg_save_config('allow_registration', $allow_registration); -} - -elgg_set_ignore_access($access); |