diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-19 22:43:10 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-19 22:43:10 +0000 |
commit | 0659757465304b32694289055adb6d95d542f29a (patch) | |
tree | d5da8da007861a01ade74a589824d40987d7197f /views/default/canvas/layouts/widgets.php | |
parent | 47da90bf82b6c148893cfbcb0de30f94ddf77356 (diff) | |
download | elgg-0659757465304b32694289055adb6d95d542f29a.tar.gz elgg-0659757465304b32694289055adb6d95d542f29a.tar.bz2 |
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
Diffstat (limited to 'views/default/canvas/layouts/widgets.php')
-rw-r--r-- | views/default/canvas/layouts/widgets.php | 5 |
1 files changed, 1 insertions, 4 deletions
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 <h2><?php echo elgg_echo("widgets:gallery"); ?></h2> <div id="widget_picker_gallery"> - <?php foreach($widgettypes as $handler => $widget) { ?> @@ -66,7 +64,6 @@ if (is_array($widgettypes) && sizeof($widgettypes) > 0 && $owner && $owner->canE </div><!-- /#customise_editpanel_rhs --> </div><!-- /#widget_picker_gallery --> - <div class="customise_editpanel_instructions"> <h2><?php echo elgg_echo('widgets:add'); ?></h2> <?php echo elgg_view('output/longtext', array('value' => elgg_echo('widgets:add:description'))); ?> |