2014042500-1.9.0_dev-site-notifications-0aae171afb7a00d8.php 516 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Elgg 1.9.0-dev upgrade 2014042500
  4. * site-notifications
  5. *
  6. * When upgrading from Elgg 1.8.x to Elgg 1.9 and you have the messages plugin enabled
  7. * also enable the site_notifications plugin as it takes over the 'site' notification part
  8. */
  9. // is the messages plugin enabled
  10. if (elgg_is_active_plugin('messages')) {
  11. // get the site_notifications plugin
  12. $site_notifications = elgg_get_plugin_from_id('site_notifications');
  13. if (!empty($site_notifications)) {
  14. $site_notifications->activate();
  15. }
  16. }