From 7ddd9521b3f3a397da3b0a6b56238d31414eb4be Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 28 Oct 2010 19:17:36 +0000 Subject: Standardized code in all of core, not including language files, tests, or core mods. git-svn-id: http://code.elgg.org/elgg/trunk@7124 36083f99-b078-4883-b0ff-0f9b5a30f544 --- pages/account/forgotten_password.php | 3 ++- pages/account/register.php | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'pages/account') diff --git a/pages/account/forgotten_password.php b/pages/account/forgotten_password.php index 2285e7299..546dbfd62 100644 --- a/pages/account/forgotten_password.php +++ b/pages/account/forgotten_password.php @@ -11,7 +11,8 @@ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); if (!isloggedin()) { $area1 = elgg_view_title(elgg_echo("user:password:lost")); $area2 = elgg_view("account/forms/forgotten_password"); - page_draw(elgg_echo('user:password:lost'), elgg_view_layout("one_column_with_sidebar", $area1 . $area2)); + $content = elgg_view_layout("one_column_with_sidebar", $area1 . $area2); + page_draw(elgg_echo('user:password:lost'), $content); } else { forward(); } \ No newline at end of file diff --git a/pages/account/register.php b/pages/account/register.php index cbbc40060..2500d11fc 100644 --- a/pages/account/register.php +++ b/pages/account/register.php @@ -29,16 +29,18 @@ if (!$CONFIG->allow_registration) { forward(); } -$friend_guid = (int) get_input('friend_guid',0); +$friend_guid = (int) get_input('friend_guid', 0); $invitecode = get_input('invitecode'); // If we're not logged in, display the registration page if (!isloggedin()) { $area1 = elgg_view_title(elgg_echo("register")); - $area2 = elgg_view("account/forms/register", array('friend_guid' => $friend_guid, 'invitecode' => $invitecode)); + $area2 = elgg_view("account/forms/register", + array('friend_guid' => $friend_guid, 'invitecode' => $invitecode)); + page_draw(elgg_echo("register"), elgg_view_layout("one_column_with_sidebar", $area1 . $area2)); -// Otherwise, forward to the index page + // Otherwise, forward to the index page } else { forward(); } -- cgit v1.2.3