From 868c3a516c9631d7b9009311b275a1aa6e7bd01f Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 29 Jan 2011 23:11:45 +0000 Subject: made two_column_left_sidebar layout also handle $vars['content'] git-svn-id: http://code.elgg.org/elgg/trunk@7954 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/layout/shells/two_column_left_sidebar.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'views/default/layout') diff --git a/views/default/layout/shells/two_column_left_sidebar.php b/views/default/layout/shells/two_column_left_sidebar.php index 0df5109ee..d2dc81e38 100644 --- a/views/default/layout/shells/two_column_left_sidebar.php +++ b/views/default/layout/shells/two_column_left_sidebar.php @@ -5,8 +5,12 @@ * Use one_sidebar instead */ -$vars['content'] = $vars['area2']; -$vars['sidebar'] = $vars['area1'] . $vars['area3']; +if (!isset($vars['content'])) { + $vars['content'] = $vars['area2']; +} +if (!isset($vars['content'])) { + $vars['sidebar'] = $vars['area1'] . $vars['area3']; +} unset($vars['area1']); unset($vars['area2']); -- cgit v1.2.3