summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-01-06 00:49:26 +0100
committerKevin Chabowski <kevin@kch42.de>2012-01-06 00:49:26 +0100
commitbd065d0fa8680ea4611ec67973772062b469346a (patch)
treede1f78a0cbf8ead12d3aa3a65896619ef3404246
parent9acc23d1ea3d0bf835595b1bc5d522900838a742 (diff)
downloadste-bd065d0fa8680ea4611ec67973772062b469346a.tar.gz
ste-bd065d0fa8680ea4611ec67973772062b469346a.tar.bz2
ste-bd065d0fa8680ea4611ec67973772062b469346a.zip
Message of a ParseCompileError fixed.
The template name was not included.
-rw-r--r--stupid_template_engine.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/stupid_template_engine.php b/stupid_template_engine.php
index 0edb880..106b1be 100644
--- a/stupid_template_engine.php
+++ b/stupid_template_engine.php
@@ -83,7 +83,7 @@ class ParseCompileError extends \Exception
public function rewrite($code)
{
$line = substr_count(str_replace("\r\n", "\n", $code), "\n", 0, $this->off + 1) + 1;
- $this->message = "{$this->msg} (Template $tpl, Line $line)";
+ $this->message = "{$this->msg} (Template {$this->tpl}, Line $line)";
$this->is_rewritten = True;
}
}