From 98e3ab7cdf38057f84330b7c8025f31b06709d4d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 31 Jul 2021 17:20:48 +0200 Subject: [PATCH] bug fixes and template adjustments --- Models/EditorDocMapper.php | 2 +- Theme/Backend/editor-list.tpl.php | 4 ++-- composer.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Models/EditorDocMapper.php b/Models/EditorDocMapper.php index 7f5a700..c2a1616 100755 --- a/Models/EditorDocMapper.php +++ b/Models/EditorDocMapper.php @@ -118,7 +118,7 @@ final class EditorDocMapper extends DataMapperAbstract public static function getByVirtualPath(string $virtualPath = '/', int $account = 0) : array { $depth = 3; - $query = self::getQuery(); + $query = self::getQuery(depth: $depth); $query->where(self::$table . '_d' . $depth . '.editor_doc_virtual', '=', $virtualPath); $query->where(self::$table . '_d' . $depth . '.editor_doc_created_by', '=', $account); diff --git a/Theme/Backend/editor-list.tpl.php b/Theme/Backend/editor-list.tpl.php index 2b11c7c..ef2a8b3 100755 --- a/Theme/Backend/editor-list.tpl.php +++ b/Theme/Backend/editor-list.tpl.php @@ -133,7 +133,7 @@ echo $this->getData('nav')->render(); ?> printHtml($value->name); ?> - printHtml($value->createdBy->name1); ?> + printHtml($value->createdBy->name1); ?> printHtml($value->createdAt->format('Y-m-d')); ?> $value) : ++$count; @@ -145,7 +145,7 @@ echo $this->getData('nav')->render(); ?> printHtml($value->title); ?> - printHtml($value->createdBy->name1); ?> + printHtml($value->createdBy->name1); ?> printHtml($value->createdAt->format('Y-m-d')); ?> diff --git a/composer.json b/composer.json index 7ad134b..7cf5769 100755 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "require-dev": { "phpunit/phpunit": ">=9.4", "friendsofphp/php-cs-fixer": ">=3.0", - "squizlabs/php_codesniffer": ">=3.5", + "squizlabs/php_codesniffer": ">=3.6", "phpmd/phpmd": ">=2.9", "phpstan/phpstan": ">=0.12.58", "phan/phan": ">=3.2.6"