aboutsummaryrefslogtreecommitdiff
path: root/mod/search/search_hooks.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-14 15:40:22 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-14 15:40:22 +0000
commitde0963eafb5143fdf44dbac17fa115deacc46453 (patch)
tree78eb372f48570c9925aec8dcf145fa9a892d3f2f /mod/search/search_hooks.php
parent9c0a913909e0b560ce5e2723098e233601e86903 (diff)
downloadelgg-de0963eafb5143fdf44dbac17fa115deacc46453.tar.gz
elgg-de0963eafb5143fdf44dbac17fa115deacc46453.tar.bz2
Fixed an incorrect var name that caused a bug when hooking against a type but not a subtype.
Added first pass at results sorting. git-svn-id: http://code.elgg.org/elgg/trunk@3808 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search/search_hooks.php')
-rw-r--r--mod/search/search_hooks.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/search/search_hooks.php b/mod/search/search_hooks.php
index e56056701..b66a17467 100644
--- a/mod/search/search_hooks.php
+++ b/mod/search/search_hooks.php
@@ -28,8 +28,7 @@ function search_objects_hook($hook, $type, $value, $params) {
$params['wheres'] = array($where);
- //@todo allow sorting by recent time
- $params['order_by'] = NULL;
+ $params['order_by'] = search_get_order_by_sql('oe', $params['sort'], $params['order']);
$entities = elgg_get_entities($params);
$params['count'] = TRUE;