discussion_replies.php 539 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Discussion reply upgrade page
  4. */
  5. // Upgrade also possible hidden replies. This feature get run
  6. // by an administrator so there's no need to ignore access.
  7. $access_status = access_get_show_hidden_status();
  8. access_show_hidden_entities(true);
  9. $count = elgg_get_annotations(array(
  10. 'annotation_names' => 'group_topic_post',
  11. 'count' => true,
  12. ));
  13. echo elgg_view('admin/upgrades/view', array(
  14. 'count' => $count,
  15. 'action' => 'action/admin/upgrades/upgrade_discussion_replies',
  16. ));
  17. access_show_hidden_entities($access_status);