aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-05 02:09:38 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-05 02:09:38 +0000
commit3fe0a4b4aa2dd07873d46ac8e463709d39592056 (patch)
tree699a0e49fa3cb4a3146346028305460626a4b9ae /engine/lib/upgrades
parent4eb7091a5696c255dc0ae11719161dd4a6165517 (diff)
downloadelgg-3fe0a4b4aa2dd07873d46ac8e463709d39592056.tar.gz
elgg-3fe0a4b4aa2dd07873d46ac8e463709d39592056.tar.bz2
Fixes #2458 adds upgrade to set default_access on old installs
git-svn-id: http://code.elgg.org/elgg/trunk@7834 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/upgrades')
-rw-r--r--engine/lib/upgrades/2011010401.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/lib/upgrades/2011010401.php b/engine/lib/upgrades/2011010401.php
new file mode 100644
index 000000000..f4befd1a8
--- /dev/null
+++ b/engine/lib/upgrades/2011010401.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);
+}