diff options
Diffstat (limited to 'views/default/widgets')
-rw-r--r-- | views/default/widgets/wrapper.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index bf77aea62..1c1d6a0dc 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -11,9 +11,12 @@ * @link http://elgg.org/
*/
+ static $widgettypes;
+ if (!isset($widgettypes)) $widgettypes = get_widget_types();
+
if ($vars['entity'] instanceof ElggObject && $vars['entity']->getSubtype() == 'widget') {
$handler = $vars['entity']->handler;
- $title = $vars['entity']->title;
+ $title = $widgettypes[$vars['entity']->handler]->name;
} else {
$handler = "error";
$title = elgg_echo("error");
|