diff --git a/Models/NewsArticle.php b/Models/NewsArticle.php index 64da263..7ba85a9 100644 --- a/Models/NewsArticle.php +++ b/Models/NewsArticle.php @@ -262,7 +262,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function getCreatedBy() : int + public function getCreatedBy() { return $this->createdBy; } @@ -273,7 +273,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCreatedBy(int $id) + public function setCreatedBy($id) { $this->createdBy = $id; } diff --git a/Theme/Backend/news-dashboard.tpl.php b/Theme/Backend/news-dashboard.tpl.php index 3cfec26..d3d103a 100644 --- a/Theme/Backend/news-dashboard.tpl.php +++ b/Theme/Backend/news-dashboard.tpl.php @@ -45,7 +45,7 @@ echo $this->getData('nav')->render(); ?> isFeatured() ? '' : ''; ?> getText('TYPE' . $news->getType()); ?> getTitle(); ?> - getCreatedBy(); ?> + getCreatedBy()->getName1(); ?> getPublish()->format('Y-m-d'); ?>