aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades
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 /engine/lib/upgrades
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
Diffstat (limited to 'engine/lib/upgrades')
-rw-r--r--engine/lib/upgrades/2011032200-1.8_svn-admins_like_widgets-7f19d2783c1680d3.php12
1 files changed, 12 insertions, 0 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);
+}