From 77db54c50dbf379eaae5d41eff98706e127cbeba Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Wed, 25 Nov 2015 22:50:29 +0100 Subject: [PATCH] Revert "If the page does not exist trigger a 404" This reverts commit 8d8420c0d66395b47337e6ee54bb46b498660969. --- system/src/Grav/Common/Twig/Twig.php | 5 ----- 1 file changed, 5 deletions(-) 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'];