$layout = elgg_view_layout('one_column', $login);
echo page_draw('', $layout);
+
+ // @hack Index must exit to keep plugins from continuing to extend
+ exit;
return TRUE;
}
global $CONFIG;
if ($CONFIG->walled_garden && !isloggedin()) {
- register_plugin_hook('index', 'system', 'elgg_walled_garden_index');
+ // hook into the index system call at the highest priority
+ register_plugin_hook('index', 'system', 'elgg_walled_garden_index', 1);
if (!$this->is_public_page()) {
register_error(elgg_echo('loggedinrequired'));