From 5ec3e48de66299a48fcbdf5eafa8f0b746f2c44e Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 30 Jun 2017 10:49:31 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#299 --- wire/modules/Fieldtype/FieldtypeComments/CommentArray.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wire/modules/Fieldtype/FieldtypeComments/CommentArray.php b/wire/modules/Fieldtype/FieldtypeComments/CommentArray.php index b3cc5371..10708122 100644 --- a/wire/modules/Fieldtype/FieldtypeComments/CommentArray.php +++ b/wire/modules/Fieldtype/FieldtypeComments/CommentArray.php @@ -90,8 +90,8 @@ class CommentArray extends PaginatedArray implements WirePaginatable { 'useGravatar' => ($this->field ? $this->field->get('useGravatar') : ''), 'useVotes' => ($this->field ? $this->field->get('useVotes') : 0), 'useStars' => ($this->field ? $this->field->get('useStars') : 0), - 'depth' => ($this->field ? (int) $this->field->get('depth') : 0), - 'dateFormat' => 'relative', + 'depth' => ($this->field ? (int) $this->field->get('depth') : 0), + 'dateFormat' => ($this->field ? $this->field->get('dateFormat') : 'relative'), ); $options = array_merge($defaultOptions, $options); $commentList = $this->getCommentList($options);