diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-12 22:00:27 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-12 22:00:27 +0000 |
commit | 8618288ed51942c814f45c67354b14eec43c2422 (patch) | |
tree | 161e4d21f3e250d25ae288be3e483e64cabef72d /engine/lib/sites.php | |
parent | 8ae46cff217a0ed97c0920099b505ddde3c5e431 (diff) | |
download | elgg-8618288ed51942c814f45c67354b14eec43c2422.tar.gz elgg-8618288ed51942c814f45c67354b14eec43c2422.tar.bz2 |
Creating a hook for plugin authors to register Walled Garden public sites.
git-svn-id: http://code.elgg.org/elgg/trunk@6016 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r-- | engine/lib/sites.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index c976384c2..fb9b66725 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -270,18 +270,24 @@ class ElggSite extends ElggEntity { } // default public pages - $public = array( + $defaults = array( $CONFIG->url, "{$CONFIG->url}action/login", + "{$CONFIG->url}pg/register/", + "{$CONFIG->url}action/register", + "{$CONFIG->url}account/forgotten_password.php", + "{$CONFIG->url}action/user/requestnewpassword", + "{$CONFIG->url}pg/resetpassword", "{$CONFIG->url}upgrade.php", ); // include a hook for plugin authors to include public pages + $plugins = trigger_plugin_hook('public_pages', 'walled_garden', NULL, array()); // lookup admin-specific public pages // allow public pages - if (in_array($url, $public)) { + if (in_array($url, array_merge($defaults, $plugins))) { return TRUE; } |