diff --git a/Core/Base/Debug/ProductionErrorHandler.php b/Core/Base/Debug/ProductionErrorHandler.php index 917365ff21..c3551c1be2 100644 --- a/Core/Base/Debug/ProductionErrorHandler.php +++ b/Core/Base/Debug/ProductionErrorHandler.php @@ -78,45 +78,42 @@ private function getPluginName($error): string */ private function render($error): string { - $title = "FATAL ERROR #" . $error["type"]; + $pluginName = $this->getPluginName($error); + $title = empty($pluginName) ? "FATAL ERROR #" . $error["type"] : 'Plugin ' . $pluginName . ': FATAL ERROR #' . $error["type"]; // calculamos un hash para el error, de forma que en la web podamos dar respuesta automáticamente $code = $error["type"] . substr($error["file"], strlen(FS_FOLDER)) . $error["line"] . $this->cleanMessage($error); $hash = sha1($code); - $html = "" + $btn2 = empty($pluginName) ? '' : + ' DISABLE / DESACTIVAR PLUGIN'; + + return "" . "" . "" . $title . "" . "" . "" . "" - . "
"; - - $pluginName = $this->getPluginName($error); - if ($pluginName !== '') { - $html .= "

Plugin " . $pluginName . ": " . $title . "

"; - } else { - $html .= "

" . $title . "

"; - } - - $html .= "