Skip to content

Commit 5adb9ff

Browse files
committed
Exception screens should always display correctly now.
1 parent b89f5bd commit 5adb9ff

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

system/Debug/Exceptions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Exceptions
6262

6363
/**
6464
* Constructor.
65-
*
65+
*
6666
* @param \Config\App $config
6767
*/
6868
public function __construct(\Config\App $config)
@@ -143,7 +143,7 @@ public function exceptionHandler(\Throwable $exception)
143143

144144
if (ob_get_level() > $this->ob_level + 1)
145145
{
146-
ob_end_flush();
146+
ob_end_clean();
147147
}
148148

149149
ob_start();
@@ -177,7 +177,7 @@ public function errorHandler(int $severity, string $message, string $file = null
177177
// Convert it to an exception and pass it along.
178178
throw new \ErrorException($message, 0, $severity, $file, $line);
179179
}
180-
180+
181181
//--------------------------------------------------------------------
182182

183183
/**

system/Debug/Toolbar/View/toolbar.tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,12 @@
191191
<?php foreach ($headers as $header => $value) : ?>
192192
<?php if (empty($value)) continue; ?>
193193
<?php if (! is_array($value)) { $value = [$value]; } ?>
194-
<?php foreach ($value as $h) ?>
194+
<?php foreach ($value as $h) : ?>
195195
<tr>
196196
<td><?= esc($h->getName()) ?></td>
197197
<td><?= esc($h->getValueLine()) ?></td>
198198
</tr>
199-
<?php endforeach ?>
199+
<?php endforeach; ?>
200200
<?php endforeach; ?>
201201
</tbody>
202202
</table>

0 commit comments

Comments
 (0)