diff --git a/system/src/Grav/Common/Twig/Twig.php b/system/src/Grav/Common/Twig/Twig.php index f88f835b6..0f5f4b97d 100644 --- a/system/src/Grav/Common/Twig/Twig.php +++ b/system/src/Grav/Common/Twig/Twig.php @@ -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'];