Commit 92aae3a0 by resurtm

Error line number fix.

parent adbbc520
...@@ -26,7 +26,7 @@ $context = $this->context; ...@@ -26,7 +26,7 @@ $context = $this->context;
</span> </span>
<?php endif; ?> <?php endif; ?>
<span class="at"><?php if ($line !== null) echo 'at line'; ?></span> <span class="at"><?php if ($line !== null) echo 'at line'; ?></span>
<span class="line"><?php if ($line !== null) echo (int)$line; ?></span> <span class="line"><?php if ($line !== null) echo (int)$line + 1; ?></span>
</div> </div>
</div> </div>
<?php if (!empty($lines)): ?> <?php if (!empty($lines)): ?>
...@@ -34,7 +34,7 @@ $context = $this->context; ...@@ -34,7 +34,7 @@ $context = $this->context;
<div class="error-line"></div> <div class="error-line"></div>
<?php for ($i = $begin; $i <= $end; ++$i): ?><div class="hover-line"></div><?php endfor; ?> <?php for ($i = $begin; $i <= $end; ++$i): ?><div class="hover-line"></div><?php endfor; ?>
<div class="code"> <div class="code">
<?php for ($i = $begin; $i <= $end; ++$i): ?><span class="lines-item"><?php echo (int)$i; ?></span><?php endfor; ?> <?php for ($i = $begin; $i <= $end; ++$i): ?><span class="lines-item"><?php echo (int)($i + 1); ?></span><?php endfor; ?>
<pre><?php <pre><?php
// fill empty lines with a whitespace to avoid rendering problems in opera // fill empty lines with a whitespace to avoid rendering problems in opera
for ($i = $begin; $i <= $end; ++$i) { for ($i = $begin; $i <= $end; ++$i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment