2011032200-1.8_svn-admins_like_widgets-7f19d2783c1680d3.php 313 B

1234567891011121314
  1. <?php
  2. /**
  3. * Elgg 1.8-svn upgrade 2011032200
  4. * admins_like_widgets
  5. *
  6. * Give current admins widgets for those pre-1.8
  7. */
  8. $admins = elgg_get_admins(array('limit' => 0));
  9. foreach ($admins as $admin) {
  10. // call the admin handler for the make_admin event
  11. _elgg_add_admin_widgets('make_admin', 'user', $admin);
  12. }