listen ansichten verbessert
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace MintyPHP\Service\Content;
|
||||
|
||||
use MintyPHP\Repository\Content\PageRepository;
|
||||
use MintyPHP\Repository\Content\PageContentRepository;
|
||||
use MintyPHP\I18n;
|
||||
use MintyPHP\Repository\Content\PageContentRepository;
|
||||
use MintyPHP\Repository\Content\PageRepository;
|
||||
|
||||
class PageService
|
||||
{
|
||||
@@ -59,8 +59,7 @@ class PageService
|
||||
string $content,
|
||||
int $currentUserId = 0,
|
||||
?string $locale = null
|
||||
): array
|
||||
{
|
||||
): array {
|
||||
$slug = trim($slug);
|
||||
if ($slug === '') {
|
||||
return ['ok' => false, 'status' => 404, 'error' => 'not_found'];
|
||||
|
||||
Reference in New Issue
Block a user