From 2c7893b48eee9191a9c6f10ecac9cf4718dc0443 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 25 Nov 2008 01:35:42 +0000 Subject: Fix a bug in thumbnail_info where we were printing out the data instead of returning it --- modules/info/helpers/info_block.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/info/helpers') diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php index 975acd6a..224ce368 100644 --- a/modules/info/helpers/info_block.php +++ b/modules/info/helpers/info_block.php @@ -28,11 +28,13 @@ class info_block_Core { } public static function thumbnail_info($theme, $item) { - print "
  • Views: 321
  • "; + $results = array(); + $results .= "
  • Views: 321
  • "; if ($item->owner) { - print "
  • "; - printf(_("By: %s"), "{$item->owner->name}"); - print "
  • "; + $results .= "
  • "; + $results .= sprintf(_("By: %s"), "{$item->owner->name}"); + $results .= "
  • "; } + return $results; } } \ No newline at end of file -- cgit v1.2.3