From 4df1bf379558ccee8ee357578d055bc1525d4c8e Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 19 Jun 2008 19:03:11 +0000 Subject: Put titles back in their correct place for widgets. git-svn-id: https://code.elgg.org/elgg/trunk@1008 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/widgets/wrapper.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'views/default/widgets/wrapper.php') 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"); -- cgit v1.2.3