aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2010123101.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-09 13:01:10 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-09 13:01:10 +0000
commit983d66229e130f18e71dd13ead5b673cc5bb14cc (patch)
tree37365eb22e8db5dfb0241da71623d54e9bddc391 /engine/lib/upgrades/2010123101.php
parent5922ff3285e68dbdf7dac444a31915621f9e2e5f (diff)
downloadelgg-983d66229e130f18e71dd13ead5b673cc5bb14cc.tar.gz
elgg-983d66229e130f18e71dd13ead5b673cc5bb14cc.tar.bz2
Refs #3241 moved the default site access check upgrade script to before the plugin upgrade so plugin upgrade is last upgrade in old upgrade system. The site access script can be run multiple times without causing problems.
git-svn-id: http://code.elgg.org/elgg/trunk@8963 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/upgrades/2010123101.php')
-rw-r--r--engine/lib/upgrades/2010123101.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/lib/upgrades/2010123101.php b/engine/lib/upgrades/2010123101.php
new file mode 100644
index 000000000..f4befd1a8
--- /dev/null
+++ b/engine/lib/upgrades/2010123101.php
@@ -0,0 +1,9 @@
+<?php
+/**
+ * Set default access for older sites
+ */
+
+$access = elgg_get_config('default_access');
+if ($access == false) {
+ elgg_save_config('default_access', ACCESS_LOGGED_IN);
+}