From d45a24be28b2eb2d0c2731708b589788a5b87215 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 22 Aug 2010 21:11:36 +0000 Subject: Merged r6671:6683 from 1.7 branch to trunk git-svn-id: http://code.elgg.org/elgg/trunk@6847 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/world.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'mod/file') diff --git a/mod/file/world.php b/mod/file/world.php index 38ab4e8ff..735692d79 100644 --- a/mod/file/world.php +++ b/mod/file/world.php @@ -12,7 +12,6 @@ $limit = get_input("limit", 10); $offset = get_input("offset", 0); - $tag = get_input("tag"); // Get the current page's owner $page_owner = page_owner_entity(); @@ -27,10 +26,7 @@ $area1 = elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'file')); $area1 .= get_filetype_cloud(); // the filter set_context('search'); - if ($tag != "") - $area2 .= list_entities_from_metadata('tags',$tag,'object','file',0,10,false); - else - $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'limit' => 10, 'offset' => $offset, 'full_view' => FALSE)); + $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'limit' => $limit, 'offset' => $offset, 'full_view' => FALSE)); set_context('file'); //get the latest comments on all files @@ -41,6 +37,4 @@ $body = elgg_view_layout('one_column_with_sidebar', $content, $area3); - // Finally draw the page page_draw($title, $body); -?> \ No newline at end of file -- cgit v1.2.3