aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/wrapper.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-17 15:19:37 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-17 15:19:37 +0000
commitcf34a08db9303453f3066cb2068d861f060ebc81 (patch)
tree8771ee0b064f1cc1b039917bbc62a4964699d3fa /views/default/widgets/wrapper.php
parentcce1163a3a0b25f781a62ec2d1492e53333d7573 (diff)
downloadelgg-cf34a08db9303453f3066cb2068d861f060ebc81.tar.gz
elgg-cf34a08db9303453f3066cb2068d861f060ebc81.tar.bz2
Closes #763: A message is now displayed for widgets belonging to disabled plugins explaining what has happened.
git-svn-id: https://code.elgg.org/elgg/trunk@2785 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r--views/default/widgets/wrapper.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php
index 846cf9e7f..63c024cc4 100644
--- a/views/default/widgets/wrapper.php
+++ b/views/default/widgets/wrapper.php
@@ -20,6 +20,8 @@
if ($vars['entity'] instanceof ElggObject && $vars['entity']->getSubtype() == 'widget') {
$handler = $vars['entity']->handler;
$title = $widgettypes[$vars['entity']->handler]->name;
+ if (!$title)
+ $title = $handler;
} else {
$handler = "error";
$title = elgg_echo("error");
@@ -63,7 +65,10 @@
} else { // end if callback != "true"
- echo elgg_view("widgets/{$handler}/view",$vars);
+ if (elgg_view_exists("widgets/{$handler}/view"))
+ echo elgg_view("widgets/{$handler}/view",$vars);
+ else
+ echo elgg_echo('widgets:handlernotfound');
?>