From 050523f2495f719368ee08d780c722637b18fa2f Mon Sep 17 00:00:00 2001 From: bzick Date: Mon, 22 Jul 2013 18:36:48 +0400 Subject: [PATCH] Fix test operator for php 5.3 --- src/Fenom/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fenom/Template.php b/src/Fenom/Template.php index 0e7e04d..50399fd 100644 --- a/src/Fenom/Template.php +++ b/src/Fenom/Template.php @@ -108,7 +108,7 @@ class Template extends Render { 'array' => 'is_array(%s)', 'iterable' => '\Fenom\Modifier::isIterable(%s)', 'const' => 'defined(%s)', - 'template' => '$this->getStorage()->templateExists(%s)', + 'template' => '$tpl->getStorage()->templateExists(%s)', 'empty' => 'empty(%s)', 'set' => 'isset(%s)', '_empty' => '!%s', // for none variable