aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index 36630548e..e6eb71afc 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -248,7 +248,8 @@ class ElggSite extends ElggEntity {
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'));