mirror of
https://github.com/getgrav/grav.git
synced 2026-03-06 12:31:53 +01:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user