mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°8772 - Form dependencies manager implementation
- Form SDK implementation - Basic Forms - Dynamics Forms - Basic Blocks + Data Model Block - Form Compilation - Turbo integration
This commit is contained in:
@@ -51,7 +51,7 @@ class ErrorPage extends NiceWebPage
|
||||
$this->log_warning($sText);
|
||||
}
|
||||
|
||||
public function error($sText)
|
||||
public function error($sText, \Throwable $oException = null)
|
||||
{
|
||||
$this->add("<div class=\"message message-error\">$sText</div>");
|
||||
if (utils::IsEasterEggAllowed()) {
|
||||
@@ -59,6 +59,10 @@ class ErrorPage extends NiceWebPage
|
||||
$this->add('<img src="'.utils::GetAbsoluteUrlAppRoot().'images/alpha-fatal-error.gif">');
|
||||
$this->add('<div class="message message-valid">'.nl2br(Dict::S('UI:ErrorPage:KittyDisclaimer')).'</div>');
|
||||
}
|
||||
if (!is_null($oException)) {
|
||||
$this->log_exception($oException->getMessage(), $oException);
|
||||
return;
|
||||
}
|
||||
$this->log_error($sText);
|
||||
}
|
||||
|
||||
@@ -78,6 +82,10 @@ class ErrorPage extends NiceWebPage
|
||||
|
||||
return parent::output();
|
||||
}
|
||||
public static function log_exception($sText, \Throwable $oException)
|
||||
{
|
||||
IssueLog::Exception($sText, $oException);
|
||||
}
|
||||
|
||||
public static function log_error($sText)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user