diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-25 01:35:42 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-25 01:35:42 +0000 |
commit | 2c7893b48eee9191a9c6f10ecac9cf4718dc0443 (patch) | |
tree | 4247fb47af66d978113b938f309430d9e57d4242 | |
parent | f81a9879be6fd50fd26d9dd2bc1c90e87763f7a8 (diff) |
Fix a bug in thumbnail_info where we were printing out the data instead of returning it
-rw-r--r-- | modules/info/helpers/info_block.php | 10 |
1 files changed, 6 insertions, 4 deletions
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 "<li>Views: 321</li>"; + $results = array(); + $results .= "<li>Views: 321</li>"; if ($item->owner) { - print "<li>"; - printf(_("By: %s"), "<a href=\"#\">{$item->owner->name}</a>"); - print "</li>"; + $results .= "<li>"; + $results .= sprintf(_("By: %s"), "<a href=\"#\">{$item->owner->name}</a>"); + $results .= "</li>"; } + return $results; } }
\ No newline at end of file |