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 /account/register.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 'account/register.php')
-rw-r--r-- | account/register.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/account/register.php b/account/register.php index 6da99fab2..f96494000 100644 --- a/account/register.php +++ b/account/register.php @@ -11,8 +11,14 @@ /** * Start the Elgg engine + * + * WHY???? In the case this file is called thru a page handler: $CONFIG + * is not within the global scope (the page handler function does not include it). + * BUT, there _might_ exist direct calls to this file, requiring the engine + * to be started. Logic for both cases follow. */ require_once(dirname(dirname(__FILE__)) . "/engine/start.php"); +global $CONFIG; // check new registration allowed if (!$CONFIG->allow_registration) { |