Skip to content

Commit

Permalink
Pushing default namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Aug 14, 2017
1 parent 4b948e2 commit 04d7945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/src/Grav/Common/Twig/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public function processSite($format = null, array $vars = [])
* @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);
}
Expand All @@ -377,7 +377,7 @@ public function addPath($template_path, $namespace = null)
* @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);
}
Expand Down

0 comments on commit 04d7945

Please sign in to comment.