From 3852b5ce7fe83cce93c0826a92c378a589bc8664 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 1 Sep 2015 17:06:58 -0700 Subject: separate objs/things from taxonomy --- include/importdoc.php | 22 ++++++++++++++++------ include/taxonomy.php | 10 +++++----- 2 files changed, 21 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/importdoc.php b/include/importdoc.php index 9cce35c50..10f868697 100755 --- a/include/importdoc.php +++ b/include/importdoc.php @@ -1,17 +1,30 @@ $rr['term'],'url' => $rr['url'],'img' => $rr['imgurl'], 'profile' => $rr['profile_name'],'term_hash' => $rr['term_hash'], 'likes' => $l,'like_count' => count($l),'like_label' => tt('Like','Likes',count($l),'noun')); + $things[$rr['obj_verb']][] = array('term' => $rr['obj_term'],'url' => $rr['obj_url'],'img' => $rr['obj_imgurl'], 'profile' => $rr['profile_name'],'term_hash' => $rr['obj_obj'], 'likes' => $l,'like_count' => count($l),'like_label' => tt('Like','Likes',count($l),'noun')); } $sorted_things = array(); if($things) { -- cgit v1.2.3