From 04d7945f10b234878047b05af20d6fa5da41ce02 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 14 Aug 2017 16:17:27 -0600 Subject: [PATCH] Pushing default namespace --- system/src/Grav/Common/Twig/Twig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Twig/Twig.php b/system/src/Grav/Common/Twig/Twig.php index fff6b6130..7f2ec0990 100644 --- a/system/src/Grav/Common/Twig/Twig.php +++ b/system/src/Grav/Common/Twig/Twig.php @@ -367,7 +367,7 @@ class Twig * @param $template_path * @param null $namespace */ - public function addPath($template_path, $namespace = null) + public function addPath($template_path, $namespace = '__main__') { $this->loader->addPath($template_path, $namespace); } @@ -377,7 +377,7 @@ class Twig * @param $template_path * @param null $namespace */ - public function prependPath($template_path, $namespace = null) + public function prependPath($template_path, $namespace = '__main__') { $this->loader->prependPath($template_path, $namespace); }