From 8618288ed51942c814f45c67354b14eec43c2422 Mon Sep 17 00:00:00 2001 From: nickw Date: Wed, 12 May 2010 22:00:27 +0000 Subject: 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 --- account/register.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'account/register.php') 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) { -- cgit v1.2.3