comments.php 520 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Comment upgrade page
  4. */
  5. // Upgrade also possible hidden comments. 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' => 'generic_comment',
  11. 'count' => true,
  12. ));
  13. echo elgg_view('admin/upgrades/view', array(
  14. 'count' => $count,
  15. 'action' => 'action/admin/upgrades/upgrade_comments',
  16. ));
  17. access_show_hidden_entities($access_status);