Skip to content

Commit

Permalink
Merge branch 'develop' into 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Aug 14, 2017
2 parents ad5cddf + 04d7945 commit f89fe0e
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 f89fe0e

Please sign in to comment.