aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/wrapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r--views/default/widgets/wrapper.php9
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>