aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2010050701.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/upgrades/2010050701.php')
-rw-r--r--engine/lib/upgrades/2010050701.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/engine/lib/upgrades/2010050701.php b/engine/lib/upgrades/2010050701.php
new file mode 100644
index 000000000..33e4b5bae
--- /dev/null
+++ b/engine/lib/upgrades/2010050701.php
@@ -0,0 +1,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);