|
@@ 127-130 (lines=4) @@
|
| 124 |
|
{ |
| 125 |
|
$comments = parent::findAll(); |
| 126 |
|
|
| 127 |
|
foreach ($comments as $id => $comment) { |
| 128 |
|
$comment->since_time = $this->humanTiming($comment->created); |
| 129 |
|
$comment->gravatar = $this->getGravatar($comment->mail); |
| 130 |
|
} |
| 131 |
|
// echo __FILE__ . " : " . __LINE__ . "<br>";dump($comments); |
| 132 |
|
return $comments; |
| 133 |
|
} |
|
@@ 146-149 (lines=4) @@
|
| 143 |
|
->where('flow = ' . "'$flow'") |
| 144 |
|
->execute(); |
| 145 |
|
// Add human timing and gravatars to each comment post. |
| 146 |
|
foreach ($comments as $id => $comment) { |
| 147 |
|
$comment->since_time = $this->humanTiming($comment->created); |
| 148 |
|
$comment->gravatar = $this->getGravatar($comment->mail); |
| 149 |
|
} |
| 150 |
|
return $comments; |
| 151 |
|
} |
| 152 |
|
} |