first commit
This commit is contained in:
68
layouts/joomla/error/backtrace.php
Normal file
68
layouts/joomla/error/backtrace.php
Normal file
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
|
||||
/** @var $displayData array */
|
||||
$backtraceList = $displayData['backtrace'];
|
||||
|
||||
if (!$backtraceList) {
|
||||
return;
|
||||
}
|
||||
|
||||
$class = $displayData['class'] ?? 'table table-striped table-bordered';
|
||||
?>
|
||||
<h2 id="caption">Call Stack</h2>
|
||||
<table class="<?php echo $class ?>" aria-describedby="caption">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
<strong>#</strong>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<strong>Function</strong>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<strong>Location</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($backtraceList as $k => $backtrace) : ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo $k + 1; ?>
|
||||
</td>
|
||||
|
||||
<?php if (isset($backtrace['class'])) : ?>
|
||||
<td>
|
||||
<?php echo $backtrace['class'] . $backtrace['type'] . $backtrace['function'] . '()'; ?>
|
||||
</td>
|
||||
<?php else : ?>
|
||||
<td>
|
||||
<?php echo $backtrace['function'] . '()'; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($backtrace['file'])) : ?>
|
||||
<td>
|
||||
<?php echo HTMLHelper::_('debug.xdebuglink', $backtrace['file'], $backtrace['line']); ?>
|
||||
</td>
|
||||
<?php else : ?>
|
||||
<td>
|
||||
 
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
1
layouts/joomla/error/index.html
Normal file
1
layouts/joomla/error/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
Reference in New Issue
Block a user