aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2010050701.php
blob: 33e4b5bae1556694116c2633953b098d25a3200d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
/**
 * Removes the Walled Garden plugin in favor of new system settings
 */

$access = elgg_set_ignore_access(TRUE);

if (is_plugin_enabled('walledgarden')) {
	disable_plugin('walledgarden');
	set_config('allow_registration', FALSE);
} else {
	set_config('allow_registration', TRUE);
}

elgg_set_ignore_access($access);