diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 22:39:46 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 22:39:46 +0000 |
commit | cc6b7d1d223241e397e0d41354924e74606eeffc (patch) | |
tree | 0ab9761a9b4db387edd3f3b17568bbee1c2b78c6 /mod/messageboard/history.php | |
parent | ca9ed0b16163dcf77154c0adc702e9f4c63df13c (diff) | |
download | elgg-cc6b7d1d223241e397e0d41354924e74606eeffc.tar.gz elgg-cc6b7d1d223241e397e0d41354924e74606eeffc.tar.bz2 |
Refs #650. Replaced calls to get_annotations() by elgg_get_annotations().
git-svn-id: http://code.elgg.org/elgg/trunk@8182 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/messageboard/history.php')
-rw-r--r-- | mod/messageboard/history.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mod/messageboard/history.php b/mod/messageboard/history.php index 648e45a78..3134165a8 100644 --- a/mod/messageboard/history.php +++ b/mod/messageboard/history.php @@ -14,11 +14,21 @@ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); $current_user = elgg_get_logged_in_user_guid(); // this is the user how has posted on your messageboard that you want to display your history with -$history_user = get_input('user'); +$history_user = get_input('user'); $users_array = array($current_user, $history_user); -$contents = get_annotations($users_array, "user", "", "messageboard", $value = "", $users_array, $limit = 10, $offset = 0, $order_by = "desc"); +$options = array( + 'guids' => $users_array, + 'type' => 'user', + 'annotation_name' => 'messageboard', + 'owner_guids' => $users_array, + 'limit' => 10, + 'offset' => 0, + 'order_by' => 'n_table.time_created desc' +); + +$contents = elgg_get_annotations($options); // Get the content to display $area2 = elgg_view_title(elgg_echo('messageboard:history:title')); |