Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refs #3241 deleting old config value in registration upgrade

git-svn-id: http://code.elgg.org/elgg/trunk@8965 36083f99-b078-4883-b0ff-0f9b5a30f544
  • Loading branch information...
commit 2e51b49335c7cd23a7d64383621a7009368c16e3 1 parent 8ba402d
@cash cash authored
View
7 engine/lib/upgrades/2011021800-1.8_svn-goodbye_walled_garden-083121a656d06894.php
@@ -6,6 +6,8 @@
* Removes the Walled Garden plugin in favor of new system settings
*/
+global $CONFIG;
+
$access = elgg_set_ignore_access(TRUE);
if (elgg_is_active_plugin('walledgarden')) {
@@ -22,6 +24,11 @@
if ($disable_registration !== null) {
$allow_registration = !$disable_registration;
elgg_save_config('allow_registration', $allow_registration);
+
+ $site = elgg_get_site_entity();
+ $query = "DELETE FROM {$CONFIG->dbprefix}config
+ WHERE name = 'disable_registration' AND site_guid = $site->guid";
+ delete_data($query);
}
elgg_set_ignore_access($access);
Please sign in to comment.
Something went wrong with that request. Please try again.