From ebd6eabbc2dfecc37009c4d348242293015cd024 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 1 Feb 2010 04:51:20 +0000 Subject: Fixes #1473: Simple patch to create a view for the registration page. git-svn-id: http://code.elgg.org/elgg/trunk@3879 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engine') diff --git a/engine/lib/users.php b/engine/lib/users.php index 6a0ad05c4..aaec4fc9f 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1399,6 +1399,14 @@ function dashboard_page_handler($page_elements) { require_once(dirname(dirname(dirname(__FILE__))) . "/dashboard/index.php"); } + +/** + * Page handler for registration + */ +function registration_page_handler($page_elements) { + require_once(dirname(dirname(dirname(__FILE__))) . "/account/register.php"); +} + /** * Sets the last action time of the given user to right now. * @@ -1500,6 +1508,8 @@ function users_init() { register_page_handler('friendsof','friends_of_page_handler'); register_page_handler('collections','collections_page_handler'); register_page_handler('dashboard','dashboard_page_handler'); + register_page_handler('register','registration_page_handler'); + register_action("register",true); register_action("useradd",true); register_action("friends/add"); -- cgit v1.2.3