| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function index($code = 500) |
||
| 33 | { |
||
| 34 | $codeString = $code . '_' . error_code_string($code); |
||
| 35 | |||
| 36 | if (presenter()->theme->use === true) { |
||
|
|
|||
| 37 | presenter()->theme->setLayout('error'); |
||
| 38 | |||
| 39 | if (false !== ($layout = presenter()->theme->active->getLayout())) { |
||
| 40 | if ($layout->getFilename() === 'theme') { |
||
| 41 | presenter()->theme->set(false); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | view('error-code', [ |
||
| 47 | 'code' => $code, |
||
| 48 | 'title' => language()->getLine($codeString . '_TITLE'), |
||
| 49 | 'message' => language()->getLine($codeString . '_MESSAGE'), |
||
| 50 | ]); |
||
| 52 | } |