From 4dd7d2be5352ac20d3eb2693d78954718c704cbc Mon Sep 17 00:00:00 2001 From: brettp Date: Sat, 12 Feb 2011 23:14:42 +0000 Subject: Updated a few recent calls to elgg_get_annotations() to use 'reverse_order_by' => true. git-svn-id: http://code.elgg.org/elgg/trunk@8186 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggEntity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/classes/ElggEntity.php') diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php index 1154fd89a..7bed1af7c 100644 --- a/engine/classes/ElggEntity.php +++ b/engine/classes/ElggEntity.php @@ -533,8 +533,8 @@ abstract class ElggEntity extends ElggData implements 'offset' => $offset, ); - if ($order == 'desc') { - $options['order_by'] = 'n_table.time_created desc'; + if ($order != 'asc') { + $options['reverse_order_by'] = true; } return elgg_get_annotations($options); -- cgit v1.2.3