aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2011032200-1.8_svn-admins_like_widgets-7f19d2783c1680d3.php
blob: 77cb2d5029a93802e27b6416f4c98295fbdede40 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}