diff options
Diffstat (limited to 'actions/widgets')
-rw-r--r-- | actions/widgets/save.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php index 0a2de0c4d..dad48b30b 100644 --- a/actions/widgets/save.php +++ b/actions/widgets/save.php @@ -16,7 +16,12 @@ $widget = get_entity($guid); if ($widget && $widget->saveSettings($params)) { elgg_set_page_owner_guid($widget->getContainerGUID()); if (!$default_widgets) { - $view = "widgets/$widget->handler/content"; + if (elgg_view_exists("widgets/$widget->handler/content")) { + $view = "widgets/$widget->handler/content"; + } else { + elgg_deprecated_notice("widgets use content as the display view", 1.8); + $view = "widgets/$widget->handler/view"; + } echo elgg_view($view, array('entity' => $widget)); } } else { |