@@ 257-271 (lines=15) @@ | ||
254 | ); |
|
255 | $current_prefix .= $prefix; |
|
256 | } |
|
257 | if (isset($thread[$key]['child']) && !empty($thread[$key]['child'])) { |
|
258 | ++$depth; |
|
259 | foreach ($thread[$key]['child'] as $childkey) { |
|
260 | if (!$admin_view && $thread[$childkey]['obj']->getVar('status') != COMMENTS_ACTIVE) { |
|
261 | // skip this comment if it is not active and continue on processing its child comments instead |
|
262 | if (isset($thread[$childkey]['child']) && !empty($thread[$childkey]['child'])) { |
|
263 | foreach ($thread[$childkey]['child'] as $childchildkey) { |
|
264 | $this->renderThreadReplies($thread, $childchildkey, $replies, $prefix, $admin_view, $depth); |
|
265 | } |
|
266 | } |
|
267 | } else { |
|
268 | $this->renderThreadReplies($thread, $childkey, $replies, $prefix, $admin_view, $depth, $current_prefix); |
|
269 | } |
|
270 | } |
|
271 | } |
|
272 | } |
|
273 | ||
274 | /** |
|
@@ 365-379 (lines=15) @@ | ||
362 | ||
363 | $prefix = $prefix + 25; |
|
364 | } |
|
365 | if (isset($thread[$key]['child']) && !empty($thread[$key]['child'])) { |
|
366 | ++$depth; |
|
367 | foreach ($thread[$key]['child'] as $childkey) { |
|
368 | if (!$admin_view && $thread[$childkey]['obj']->getVar('status') != COMMENTS_ACTIVE) { |
|
369 | // skip this comment if it is not active and continue on processing its child comments instead |
|
370 | if (isset($thread[$childkey]['child']) && !empty($thread[$childkey]['child'])) { |
|
371 | foreach ($thread[$childkey]['child'] as $childchildkey) { |
|
372 | $this->renderNestReplies($thread, $childchildkey, $replies, $prefix, $admin_view, $depth); |
|
373 | } |
|
374 | } |
|
375 | } else { |
|
376 | $this->renderNestReplies($thread, $childkey, $replies, $prefix, $admin_view, $depth); |
|
377 | } |
|
378 | } |
|
379 | } |
|
380 | } |
|
381 | ||
382 | /** |