From bd065d0fa8680ea4611ec67973772062b469346a Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Fri, 6 Jan 2012 00:49:26 +0100 Subject: Message of a ParseCompileError fixed. The template name was not included. --- stupid_template_engine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stupid_template_engine.php') 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; } } -- cgit v1.2.3-70-g09d2