diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-18 19:57:33 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-18 19:57:33 +0000 |
commit | 9edaa3c385610ebb45a9e8282a002e666d7d8c91 (patch) | |
tree | 0cb277d714267ede0b59836b0f2c18f59aba5daf /engine/lib/sites.php | |
parent | 97d7421baea83266f611bcc3534840dd146cdec1 (diff) | |
download | elgg-9edaa3c385610ebb45a9e8282a002e666d7d8c91.tar.gz elgg-9edaa3c385610ebb45a9e8282a002e666d7d8c91.tar.bz2 |
Ensuring the Walled Garden hook properly exits before plugins can continue to extend view.
git-svn-id: http://code.elgg.org/elgg/trunk@6087 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r-- | engine/lib/sites.php | 3 |
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')); |