From 3bfa294985001c2c6ebb58fbf87b2f795e055ca5 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 11 Nov 2010 01:36:23 +0000 Subject: Fixes #2640 - elgg_view_layout now uses a parameter array like all the other elgg_view* functions git-svn-id: http://code.elgg.org/elgg/trunk@7288 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/canvas/default.php | 6 + views/default/canvas/layouts/administration.php | 9 +- views/default/canvas/layouts/one_column.php | 3 + .../canvas/layouts/one_column_with_sidebar.php | 11 +- views/default/js/initialise_elgg.php | 259 --------------------- views/default/messages/exceptions/exception.php | 3 +- views/default/page_elements/sidebar.php | 10 +- 7 files changed, 36 insertions(+), 265 deletions(-) (limited to 'views/default') diff --git a/views/default/canvas/default.php b/views/default/canvas/default.php index cfcee9484..60dc90b0d 100644 --- a/views/default/canvas/default.php +++ b/views/default/canvas/default.php @@ -4,9 +4,15 @@ * * @package Elgg * @subpackage Core + * + * @uses $vars['content'] Content string */ +// @todo deprecated so remove in Elgg 2.0 if (isset($vars['area1'])) { echo $vars['area1']; } +if (isset($vars['content'])) { + echo $vars['content']; +} diff --git a/views/default/canvas/layouts/administration.php b/views/default/canvas/layouts/administration.php index 9b0144ade..0e18eb7e8 100644 --- a/views/default/canvas/layouts/administration.php +++ b/views/default/canvas/layouts/administration.php @@ -4,6 +4,9 @@ * * @package Elgg * @subpackage Core + * + * @uses $vars['content'] Content string + * @uses $vars['sidebar'] Optional sidebar content */ ?>