diff --git a/Theme/Backend/task-single.tpl.php b/Theme/Backend/task-single.tpl.php index 1e8c1ce..f0349a0 100755 --- a/Theme/Backend/task-single.tpl.php +++ b/Theme/Backend/task-single.tpl.php @@ -58,7 +58,7 @@ echo $this->getData('nav')->render(); ?>
- <?= $this->getHtml('User', '0', '0'); ?> + <?= $this->getHtml('User', '0', '0'); ?> printHtml($task->getCreatedBy()->getName1()); ?> - printHtml($task->getCreatedAt()->format('Y/m/d H:i')); ?> @@ -115,42 +115,40 @@ echo $this->getData('nav')->render(); ?>
isEditable()) : ?> @@ -198,7 +196,7 @@ echo $this->getData('nav')->render(); ?>
- <?= $this->getHtml('User', '0', '0'); ?> + <?= $this->getHtml('User', '0', '0'); ?> printHtml($element->getCreatedBy()->getName1()); ?> - printHtml($element->getCreatedAt()->format('Y-m-d H:i')); ?> diff --git a/Views/TaskView.php b/Views/TaskView.php index 4e7038d..b84d382 100755 --- a/Views/TaskView.php +++ b/Views/TaskView.php @@ -35,15 +35,15 @@ class TaskView extends View * * If the profile doesn't have an image a random default image is used * - * @param Account $account Account + * @param int $account Account * * @return string * * @since 1.0.0 */ - public function getAccountImage(Account $account) : string + public function getAccountImage(int $account) : string { - $profile = ProfileMapper::getFor($account->getId(), 'account'); + $profile = ProfileMapper::getFor($account, 'account'); if ($profile === null || $profile->getImage()->getPath() === '') { return UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) . '.png');