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

// as last upgrade for 1.8.0 (or nearly so) we add a reminder to update .htaccess
system_message("IMPORTANT: update your .htaccess file (or equivalent)");