mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-13 11:57:57 -05:00
- Replaced TRUE/FALSE constants with true/false keywords - Replaced NULL constant with null keyword - Replaced `<?php echo` in views with shortened `<?=` - Added missing variable declaration - Added missing function return type in declaration - replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
28 lines
685 B
PHP
28 lines
685 B
PHP
<?php
|
|
/**
|
|
* @var string $severity
|
|
* @var string $message
|
|
* @var string $filepath
|
|
* @var int $line
|
|
*/
|
|
?>
|
|
A PHP Error was encountered
|
|
|
|
Severity: <?= esc($severity), "\n" ?>
|
|
Message: <?= esc($message), "\n" ?>
|
|
Filename: <?= esc($filepath), "\n" ?>
|
|
Line Number: <?= $line ?>
|
|
|
|
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE): ?>
|
|
|
|
Backtrace:
|
|
<?php foreach (debug_backtrace() as $error): ?>
|
|
<?php if (isset($error['file']) && strpos($error['file'], realpath(ROOTPATH)) !== 0): ?>
|
|
File: <?= esc($error['file']), "\n" ?>
|
|
Line: <?= $error['line'], "\n" ?>
|
|
Function: <?= esc($error['function']), "\n\n" ?>
|
|
<?php endif ?>
|
|
<?php endforeach ?>
|
|
|
|
<?php endif ?>
|