aboutsummaryrefslogtreecommitdiff
path: root/pages/account/forgotten_password.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-06-13 04:30:11 -0700
committerCash Costello <cash.costello@gmail.com>2013-06-13 04:30:11 -0700
commit160c828b75abee571d0058694c9758617a613242 (patch)
tree15b5b469525323684c6e763d138fb83ea3fdfcae /pages/account/forgotten_password.php
parentc3f02ab07e20b870cb36e05de2795ef9fea09182 (diff)
parent13a7ca453d09672c7bbc7bef84eaf4e47b646da5 (diff)
downloadelgg-160c828b75abee571d0058694c9758617a613242.tar.gz
elgg-160c828b75abee571d0058694c9758617a613242.tar.bz2
Merge pull request #5628 from cash/pr-5620
fixing the issue with registration not showing on walled garden after failed registration
Diffstat (limited to 'pages/account/forgotten_password.php')
-rw-r--r--pages/account/forgotten_password.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/pages/account/forgotten_password.php b/pages/account/forgotten_password.php
index bf6ef87e0..f464f98c9 100644
--- a/pages/account/forgotten_password.php
+++ b/pages/account/forgotten_password.php
@@ -17,6 +17,11 @@ $content .= elgg_view_form('user/requestnewpassword', array(
'class' => 'elgg-form-account',
));
-$body = elgg_view_layout("one_column", array('content' => $content));
-
-echo elgg_view_page($title, $body);
+if (elgg_get_config('walled_garden')) {
+ elgg_load_css('elgg.walled_garden');
+ $body = elgg_view_layout('walled_garden', array('content' => $content));
+ echo elgg_view_page($title, $body, 'walled_garden');
+} else {
+ $body = elgg_view_layout('one_column', array('content' => $content));
+ echo elgg_view_page($title, $body);
+}