mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
Make sure twig_include returns a string
This commit is contained in:
@@ -1527,7 +1527,7 @@ function twig_include(Twig_Environment $env, $context, $template, $variables = a
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = null;
|
$result = '';
|
||||||
try {
|
try {
|
||||||
$result = $env->resolveTemplate($template)->render($variables);
|
$result = $env->resolveTemplate($template)->render($variables);
|
||||||
} catch (Twig_Error_Loader $e) {
|
} catch (Twig_Error_Loader $e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user