mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Revert "If the page does not exist trigger a 404"
This reverts commit 8d8420c0d6.
This commit is contained in:
parent
b259927348
commit
77db54c50d
|
|
@ -297,11 +297,6 @@ class Twig
|
|||
$this->grav->fireEvent('onTwigSiteVariables');
|
||||
$pages = $this->grav['pages'];
|
||||
$page = $this->grav['page'];
|
||||
|
||||
if (!$page) {
|
||||
throw new \RuntimeException('Page Not Found', 404);
|
||||
}
|
||||
|
||||
$content = $page->content();
|
||||
$config = $this->grav['config'];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user