Fix DisplayNotFound page

- Add another condition earlier in Module\Item\Display
- Separate reasons in individual translation strings
This commit is contained in:
Hypolite Petovan 2023-07-17 22:55:46 -04:00
parent 96d2cddb54
commit 63f5d94a02
3 changed files with 22 additions and 12 deletions

View file

@ -133,7 +133,9 @@ class Display extends BaseModule
}
if (empty($item)) {
throw new HTTPException\NotFoundException($this->t('The requested item doesn\'t exist or has been deleted.'));
$this->page['aside'] = '';
$displayNotFound = new DisplayNotFound($this->l10n, $this->baseUrl, $this->args, $this->logger, $this->profiler, $this->response, $this->server, $this->parameters);
return $displayNotFound->content();
}
if ($item['gravity'] != Item::GRAVITY_PARENT) {