aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/sitepages/index.php')
-rw-r--r--mod/sitepages/index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/sitepages/index.php b/mod/sitepages/index.php
index 5b575ef37..f1f6585da 100644
--- a/mod/sitepages/index.php
+++ b/mod/sitepages/index.php
@@ -13,7 +13,8 @@ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
//Load the front page
$content = elgg_view('sitepages/welcome');
$content .= elgg_view_title(elgg_echo('content:latest'));
-set_context('search');
+
+elgg_set_context('search');
$offset = (int)get_input('offset', 0);
if(is_plugin_enabled('riverdashboard')){
$items = elgg_view_river_items(0, 0, "", "", "", '', 10, 0, 0, true, false);
@@ -21,7 +22,8 @@ if(is_plugin_enabled('riverdashboard')){
}else{
$content .= elgg_list_registered_entities(array('limit' => 10, 'offset' => $offset, 'full_view' => FALSE, 'allowed_types' => array('object','group')));
}
-set_context('main');
+elgg_set_context('main');
+
global $autofeed;
$autofeed = FALSE;