mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
tweaked previous merge
This commit is contained in:
@@ -1267,7 +1267,7 @@ function twig_include(Twig_Environment $env, $context, $template, $variables = a
|
||||
*/
|
||||
function twig_constant($constant, $object = null)
|
||||
{
|
||||
if ($object) {
|
||||
if (null !== $object) {
|
||||
$constant = get_class($object).'::'.$constant;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user