aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2011032200-1.8_svn-admins_like_widgets-7f19d2783c1680d3.php
blob: 592adb403e3693f668ca2feb39eb00f23c544385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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) {
	// call the admin handler for the make_admin event
	elgg_add_admin_widgets('make_admin', 'user', $admin);
}