1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00
This commit is contained in:
Ryan Cramer
2017-06-30 10:49:31 -04:00
parent bcd40cdf03
commit 5ec3e48de6

View File

@@ -91,7 +91,7 @@ class CommentArray extends PaginatedArray implements WirePaginatable {
'useVotes' => ($this->field ? $this->field->get('useVotes') : 0), 'useVotes' => ($this->field ? $this->field->get('useVotes') : 0),
'useStars' => ($this->field ? $this->field->get('useStars') : 0), 'useStars' => ($this->field ? $this->field->get('useStars') : 0),
'depth' => ($this->field ? (int) $this->field->get('depth') : 0), 'depth' => ($this->field ? (int) $this->field->get('depth') : 0),
'dateFormat' => 'relative', 'dateFormat' => ($this->field ? $this->field->get('dateFormat') : 'relative'),
); );
$options = array_merge($defaultOptions, $options); $options = array_merge($defaultOptions, $options);
$commentList = $this->getCommentList($options); $commentList = $this->getCommentList($options);