| @@ 64-68 (lines=5) @@ | ||
| 61 | } |
|
| 62 | foreach ($itemsObj as $key => $thisitem) { |
|
| 63 | $item = $thisitem->toArraySimple('default', 0, $optTruncate); |
|
| 64 | if ($i < $itemsCount) { |
|
| 65 | $item['showline'] = true; |
|
| 66 | } else { |
|
| 67 | $item['showline'] = false; |
|
| 68 | } |
|
| 69 | if ($optTruncate > 0) { |
|
| 70 | $block['truncate'] = true; |
|
| 71 | } |
|
| @@ 84-88 (lines=5) @@ | ||
| 81 | if (!$itemObj->notLoaded()) { |
|
| 82 | $item = $itemObj->toArraySimple(); |
|
| 83 | $item['who_when'] = sprintf(_MB_PUBLISHER_WHO_WHEN, $itemObj->posterName(), $itemObj->getDatesub()); |
|
| 84 | if ($i < $itemsCount) { |
|
| 85 | $item['showline'] = true; |
|
| 86 | } else { |
|
| 87 | $item['showline'] = false; |
|
| 88 | } |
|
| 89 | if ($optTruncate > 0) { |
|
| 90 | $block['truncate'] = true; |
|
| 91 | $item['summary'] = publisherTruncateTagSafe($item['summary'], $optTruncate); |
|