aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 19:03:11 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 19:03:11 +0000
commit4df1bf379558ccee8ee357578d055bc1525d4c8e (patch)
tree5f316b659f40da39c5d51b15315f90caa651d1f4 /views/default
parent915bdaf8fb2c69395fd0371e5a3d6cb47c367cb4 (diff)
downloadelgg-4df1bf379558ccee8ee357578d055bc1525d4c8e.tar.gz
elgg-4df1bf379558ccee8ee357578d055bc1525d4c8e.tar.bz2
Put titles back in their correct place for widgets.
git-svn-id: https://code.elgg.org/elgg/trunk@1008 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/widgets/wrapper.php5
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");