Browse Source

Error line number fix.

tags/2.0.0-beta
resurtm 12 years ago
parent
commit
adbbc52015
  1. 2
      framework/yii/views/errorHandler/callStackItem.php

2
framework/yii/views/errorHandler/callStackItem.php

@ -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 + 1); ?></span><?php endfor; ?>
<?php for ($i = $begin; $i <= $end; ++$i): ?><span class="lines-item"><?php echo (int)$i; ?></span><?php endfor; ?>
<pre><?php
// fill empty lines with a whitespace to avoid rendering problems in opera
for ($i = $begin; $i <= $end; ++$i) {

Loading…
Cancel
Save