aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-29 23:11:45 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-29 23:11:45 +0000
commit868c3a516c9631d7b9009311b275a1aa6e7bd01f (patch)
tree33428ec87404bdcf3ca719f7126a51280d92a73e /views
parent27829ab5e2d7427cebc986d503e774ab199ba3b3 (diff)
downloadelgg-868c3a516c9631d7b9009311b275a1aa6e7bd01f.tar.gz
elgg-868c3a516c9631d7b9009311b275a1aa6e7bd01f.tar.bz2
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
Diffstat (limited to 'views')
-rw-r--r--views/default/layout/shells/two_column_left_sidebar.php8
1 files changed, 6 insertions, 2 deletions
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']);