diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-05 02:09:38 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-05 02:09:38 +0000 |
commit | 3fe0a4b4aa2dd07873d46ac8e463709d39592056 (patch) | |
tree | 699a0e49fa3cb4a3146346028305460626a4b9ae | |
parent | 4eb7091a5696c255dc0ae11719161dd4a6165517 (diff) | |
download | elgg-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
-rw-r--r-- | engine/lib/upgrades/2011010401.php | 9 | ||||
-rw-r--r-- | version.php | 2 |
2 files changed, 10 insertions, 1 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); +} diff --git a/version.php b/version.php index b9efe2301..5308c5de2 100644 --- a/version.php +++ b/version.php @@ -11,7 +11,7 @@ // YYYYMMDD = Elgg Date // XX = Interim incrementer -$version = 2011010101; +$version = 2011010401; // Human-friendly version name $release = '1.8-svn'; |