Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
websemantics committed Sep 11, 2018
1 parent 53f4afb commit 506bbf8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Support/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
if (!function_exists('_render')) {
function _render($template, $context)
{
$twig = new \Twig_Environment(new \Twig_Loader_Array(array()));
$template = $twig->createTemplate($template);
return $template->render($context);
$twig = new \Twig_Environment(new \Twig_Loader_Array());
return $twig->createTemplate($template)->render($context);
}
}

Expand Down

0 comments on commit 506bbf8

Please sign in to comment.