From 0659757465304b32694289055adb6d95d542f29a Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 19 Feb 2010 22:43:10 +0000 Subject: Fixed a bug in widget layouts that caused the "edit page" link to not work if no widgets were defined. git-svn-id: http://code.elgg.org/elgg/trunk@3952 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/canvas/layouts/widgets.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'views/default') diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index 6b89d5435..7b3470dd2 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -8,7 +8,6 @@ * @author Curverider Ltd * @link http://elgg.org/ */ - $widgettypes = get_widget_types(); $owner = page_owner_entity(); @@ -26,7 +25,7 @@ if (empty($area1widgets) && empty($area2widgets) && empty($area3widgets)) { } } -if (is_array($widgettypes) && sizeof($widgettypes) > 0 && $owner && $owner->canEdit()) { +if ($owner && $owner->canEdit()) { ?> @@ -36,7 +35,6 @@ if (is_array($widgettypes) && sizeof($widgettypes) > 0 && $owner && $owner->canE

-

elgg_echo('widgets:add:description'))); ?> -- cgit v1.2.3