Removed User model from $_SESSION.
This commit is contained in:
parent
597a20deea
commit
f26726c6e9
16 changed files with 72 additions and 74 deletions
|
|
@ -4,15 +4,13 @@
|
|||
* @var $exception \Exception
|
||||
*/
|
||||
|
||||
$user = $_SESSION['php-censor-user'];
|
||||
|
||||
?>
|
||||
<div class="panel panel-danger">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">Sorry, there was a problem</h2>
|
||||
</div>
|
||||
|
||||
<?php if ($user->getIsAdmin()): ?>
|
||||
<?php if ($this->getUser()->getIsAdmin()): ?>
|
||||
<div class="box-body">
|
||||
<strong>Message</strong>: <?= $exception->getMessage(); ?><br />
|
||||
<strong>File</strong>: <?= $exception->getFile(); ?><br />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue