aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-23 02:18:31 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-23 02:18:31 +0000
commitc001c7fe854f5a4f76576313935eb56ee7f36cac (patch)
tree7eb933d7662d2e561a3d726daf282aea118546d8
parent8e518978b3f570930a8f5c3bfcbceb4b2ef61f78 (diff)
downloadelgg-c001c7fe854f5a4f76576313935eb56ee7f36cac.tar.gz
elgg-c001c7fe854f5a4f76576313935eb56ee7f36cac.tar.bz2
Fixes #3165 admins get widgets on upgrade - new upgrade creation process super smooth #thanksBrett
git-svn-id: http://code.elgg.org/elgg/trunk@8824 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/upgrades/2011032200-1.8_svn-admins_like_widgets-7f19d2783c1680d3.php12
-rw-r--r--version.php2
2 files changed, 13 insertions, 1 deletions
diff --git a/engine/lib/upgrades/2011032200-1.8_svn-admins_like_widgets-7f19d2783c1680d3.php b/engine/lib/upgrades/2011032200-1.8_svn-admins_like_widgets-7f19d2783c1680d3.php
new file mode 100644
index 000000000..77cb2d502
--- /dev/null
+++ b/engine/lib/upgrades/2011032200-1.8_svn-admins_like_widgets-7f19d2783c1680d3.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Elgg 1.8-svn upgrade 2011032200
+ * admins_like_widgets
+ *
+ * Give current admins widgets for those pre-1.8
+ */
+
+$admins = elgg_get_admins(array('limit' => 0));
+foreach ($admins as $admin) {
+ elgg_add_admin_widgets('make_admin', 'user', $admin);
+}
diff --git a/version.php b/version.php
index 55a8cc691..ae4e01091 100644
--- a/version.php
+++ b/version.php
@@ -11,7 +11,7 @@
// YYYYMMDD = Elgg Date
// XX = Interim incrementer
-$version = 2011032000;
+$version = 2011032200;
// Human-friendly version name
$release = '1.8-svn';