Revert "If the page does not exist trigger a 404"

This reverts commit 8d8420c0d6.
This commit is contained in:
Flavio Copes 2015-11-25 22:50:29 +01:00
parent b259927348
commit 77db54c50d

View File

@ -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'];