blob: 554e10d8aa0014ce52ebb2e034be5419349c3305 (
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 (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);
}
elgg_set_ignore_access($access);
  |