From f532658cc431d2b68c1ffba12b1122e6dc098ad4 Mon Sep 17 00:00:00 2001 From: bzick Date: Thu, 6 Nov 2014 00:55:32 +0300 Subject: [PATCH] Fix #122. Compatibility problem with mb_string --- 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 09bf5e6..1396a9d 100644 --- a/src/Fenom/Template.php +++ b/src/Fenom/Template.php @@ -193,7 +193,7 @@ class Template extends Render $this->_src = call_user_func($filter, $this, $this->_src); } while (($start = strpos($this->_src, '{', $pos)) !== false) { // search open-symbol of tags - switch ($this->_src[$start + 1]) { // check next character + switch (substr($this->_src, $start + 1, 1)) { // check next character case "\n": case "\r": case "\t":