mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 19:03:21 +03:00
Removed teh custom_exceptions_helper.php file
This commit is contained in:
parent
cb1ede235e
commit
a241e8b2a4
5 changed files with 9 additions and 74 deletions
|
@ -65,7 +65,14 @@ $autoload['libraries'] = ['database', 'session'];
|
||||||
| $autoload['helper'] = array('url', 'file');
|
| $autoload['helper'] = array('url', 'file');
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$autoload['helper'] = ['custom_exceptions', 'url', 'file', 'language', 'asset', 'config', 'render'];
|
$autoload['helper'] = [
|
||||||
|
'url',
|
||||||
|
'file',
|
||||||
|
'language',
|
||||||
|
'asset',
|
||||||
|
'config',
|
||||||
|
'render'
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* Easy!Appointments - Open Source Web Scheduler
|
|
||||||
*
|
|
||||||
* @package EasyAppointments
|
|
||||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
|
||||||
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
|
|
||||||
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
||||||
* @link http://easyappointments.org
|
|
||||||
* @since v1.0.0
|
|
||||||
* ---------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Print an exception to an HTML text.
|
|
||||||
*
|
|
||||||
* This method is used to display exceptions in a way that is useful and easy for the user to see. It uses the
|
|
||||||
* Bootstrap CSS accordion markup to display the message and when the user clicks on it the exception trace will be
|
|
||||||
* revealed. We display only one exceptions at a time because the user needs to be able to display the details of each
|
|
||||||
* exception separately.
|
|
||||||
*
|
|
||||||
* @param Exception $exception The exception to be displayed.
|
|
||||||
*
|
|
||||||
* @return string Returns the html markup of the exception.
|
|
||||||
*/
|
|
||||||
function exceptionToHtml($exception)
|
|
||||||
{
|
|
||||||
return
|
|
||||||
'<div class="accordion" id="error-accordion">
|
|
||||||
<div class="accordion-group">
|
|
||||||
<div class="accordion-heading">
|
|
||||||
<a class="accordion-toggle" data-toggle="collapse"
|
|
||||||
data-parent="#error-accordion" href="#error-technical">' . $exception->getMessage() . '
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div id="error-technical" class="accordion-body collapse">
|
|
||||||
<div class="accordion-inner">
|
|
||||||
<pre>' . $exception->getTraceAsString() . '</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>';
|
|
||||||
}
|
|
|
@ -82,17 +82,6 @@
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if (isset($exceptions)): ?>
|
|
||||||
<div style="margin: 10px">
|
|
||||||
<h4><?= lang('unexpected_issues') ?></h4>
|
|
||||||
|
|
||||||
<?php foreach ($exceptions as $exception): ?>
|
|
||||||
<?= exceptionToHtml($exception) ?>
|
|
||||||
<?php endforeach ?>
|
|
||||||
</div>
|
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- SELECT SERVICE AND PROVIDER -->
|
<!-- SELECT SERVICE AND PROVIDER -->
|
||||||
|
|
||||||
<div id="wizard-frame-1" class="wizard-frame">
|
<div id="wizard-frame-1" class="wizard-frame">
|
||||||
|
|
|
@ -48,16 +48,6 @@
|
||||||
<?= lang('add_to_google_calendar') ?>
|
<?= lang('add_to_google_calendar') ?>
|
||||||
</button>
|
</button>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (isset($exceptions)): ?>
|
|
||||||
<div class="m-2">
|
|
||||||
<h4><?= lang('unexpected_issues') ?></h4>
|
|
||||||
|
|
||||||
<?php foreach ($exceptions as $exception): ?>
|
|
||||||
<?= exceptionToHtml($exception) ?>
|
|
||||||
<?php endforeach ?>
|
|
||||||
</div>
|
|
||||||
<?php endif ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
|
|
|
@ -35,16 +35,8 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h3><?= $message_title ?></h3>
|
<h3><?= $message_title ?></h3>
|
||||||
<p><?= $message_text ?></p>
|
|
||||||
|
|
||||||
<?php if (isset($exceptions) && config('debug')): ?>
|
<p><?= $message_text ?></p>
|
||||||
<div>
|
|
||||||
<h4><?= lang('unexpected_issues') ?></h4>
|
|
||||||
<?php foreach ($exceptions as $exception): ?>
|
|
||||||
<?= exceptionToHtml($exception) ?>
|
|
||||||
<?php endforeach ?>
|
|
||||||
</div>
|
|
||||||
<?php endif ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
|
|
Loading…
Reference in a new issue