mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Error line number fix.
This commit is contained in:
@ -26,7 +26,7 @@ $context = $this->context;
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<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>
|
||||
<?php if (!empty($lines)): ?>
|
||||
@ -34,7 +34,7 @@ $context = $this->context;
|
||||
<div class="error-line"></div>
|
||||
<?php for ($i = $begin; $i <= $end; ++$i): ?><div class="hover-line"></div><?php endfor; ?>
|
||||
<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
|
||||
// fill empty lines with a whitespace to avoid rendering problems in opera
|
||||
for ($i = $begin; $i <= $end; ++$i) {
|
||||
|
Reference in New Issue
Block a user