aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2010050701.php
blob: 4a02a77c68d581b3b8de47d51fafd3bc4d3b9529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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);
	set_config('walled_garden', TRUE);
} else {
	set_config('allow_registration', TRUE);
	set_config('walled_garden', FALSE);
}

elgg_set_ignore_access($access);