From: Brett Profitt Date: Fri, 14 Oct 2011 02:02:39 +0000 (-0700) Subject: Fixes #3746. Moved the categories page handler script. Updated the layout call. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a11aec8c7b88e78581a5550c059c2cfab099a02d;p=lorea%2Felgg.git Fixes #3746. Moved the categories page handler script. Updated the layout call. --- diff --git a/mod/categories/listing.php b/mod/categories/pages/categories/listing.php similarity index 86% rename from mod/categories/listing.php rename to mod/categories/pages/categories/listing.php index abbcf6785..8924506e9 100644 --- a/mod/categories/listing.php +++ b/mod/categories/pages/categories/listing.php @@ -29,6 +29,11 @@ $title = elgg_echo('categories:results', array($category)); $content = elgg_view_title($title); $content .= $objects; -$body = elgg_view_layout('two_column_left_sidebar', '', $content); +$body = elgg_view_layout('content', array( + 'content' => $content, + 'title' => $title, + 'filter' => '', + 'header' => '', +)); echo elgg_view_page($title, $body); diff --git a/mod/categories/start.php b/mod/categories/start.php index 2ccea0d70..b6bc4a55c 100644 --- a/mod/categories/start.php +++ b/mod/categories/start.php @@ -31,7 +31,7 @@ function categories_init() { * */ function categories_page_handler() { - include(dirname(__FILE__) . "/listing.php"); + include(dirname(__FILE__) . "/pages/categories/listing.php"); return TRUE; }