summaryrefslogtreecommitdiff
path: root/src/ste/ParseCompileError.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/ste/ParseCompileError.php')
-rw-r--r--src/ste/ParseCompileError.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ste/ParseCompileError.php b/src/ste/ParseCompileError.php
index 5ee37c7..8a7c36b 100644
--- a/src/ste/ParseCompileError.php
+++ b/src/ste/ParseCompileError.php
@@ -6,14 +6,14 @@ class ParseCompileError extends \Exception {
public $msg;
public $tpl;
public $off;
-
+
public function __construct($msg, $tpl, $offset, $code = 0, $previous = NULL) {
$this->msg = $msg;
$this->tpl = $tpl;
$this->off = $offset;
$this->message = "$msg (Template $tpl, Offset $offset)";
}
-
+
public function rewrite($code) {
$line = substr_count(str_replace("\r\n", "\n", substr($code, 0, $this->off)), "\n") + 1;
$this->message = "{$this->msg} (Template {$this->tpl}, Line $line)";