Permalink
Browse files

feature(routing): Render members pages with views

  • Loading branch information...
ewinslow committed May 28, 2015
1 parent 89651a3 commit 75c3fcda35854a086fe5602871e94bf90163f2b8
View
@@ -137,8 +137,6 @@ function members_nav_online($hook, $type, $returnvalue, $params) {
* @return bool
*/
function members_page_handler($page) {
$base = elgg_get_plugins_path() . 'members/pages/members';
if (empty($page[0])) {
$page[0] = 'newest';
}
@@ -147,9 +145,9 @@ function members_page_handler($page) {
$vars['page'] = $page[0];
if ($page[0] == 'search') {
require_once "$base/search.php";
echo elgg_view('resources/members/search', $vars);
} else {
require_once "$base/index.php";
echo elgg_view('resources/members/index', $vars);
}
return true;
}

0 comments on commit 75c3fcd

Please sign in to comment.