]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4536 removes use of deprecated list_annotations() from pages plugin
authorCash Costello <cash.costello@gmail.com>
Sat, 2 Jun 2012 21:44:39 +0000 (17:44 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 2 Jun 2012 21:44:39 +0000 (17:44 -0400)
mod/pages/pages/pages/history.php

index a63b37a7a5080497ced35af1e8d71523974de4fd..8725961794889e22018a29c6f12fb71a620fe2e8 100644 (file)
@@ -30,7 +30,12 @@ elgg_push_breadcrumb(elgg_echo('pages:history'));
 
 $title = $page->title . ": " . elgg_echo('pages:history');
 
-$content = list_annotations($page_guid, 'page', 20, false);
+$content = elgg_list_annotations(array(
+               'guid' => $page_guid,
+               'annotation_name' => 'page',
+               'limit' => 20,
+               'order_by' => "n_table.time_created desc"
+));
 
 $body = elgg_view_layout('content', array(
        'filter' => '',