diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-01 00:57:18 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-01 00:57:18 +0000 |
commit | ad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a (patch) | |
tree | 31318b4d53199abede8b03a47b1ff79add545ea3 /views | |
parent | 3bda294ee00663362db778fef320f866bc3a28e5 (diff) | |
download | elgg-ad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a.tar.gz elgg-ad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a.tar.bz2 |
Fixes #2555 content.php is the new display view for widgets
git-svn-id: http://code.elgg.org/elgg/trunk@7484 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r-- | views/default/widgets/wrapper.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index 20faf85a8..9c941a7c9 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -40,7 +40,14 @@ $widget_instance = "widget_instance_$handler"; } ?> <div class="widget_content"> - <?php echo elgg_view("widgets/$handler/view", $vars); ?> + <?php + if (elgg_view_exists("widgets/$handler/content")) { + echo elgg_view("widgets/$handler/content", $vars); + } else { + elgg_deprecated_notice("widgets use content as the display view", 1.7); + echo elgg_view("widgets/$handler/view", $vars); + } + ?> </div> </div> </div> |