mirror of
https://github.com/filp/whoops.git
synced 2026-09-12 10:46:20 +00:00
Update PrettyPage template to correctly use Frame::getFileLines
This commit is contained in:
@@ -215,7 +215,7 @@
|
||||
$line = $frame->getLine();
|
||||
|
||||
// the $line is 1-indexed, we nab -1 where needed to account for this
|
||||
$range = $frame->getFileLines($line - 3, $line + 3);
|
||||
$range = $frame->getFileLines($line - 3, 4);
|
||||
$start = key($range) + 1;
|
||||
$code = join("\n", $range);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user