From: Chuck Hagenbuch Date: Sat, 24 Jul 2010 20:09:10 +0000 (-0400) Subject: Add a dom id to details, move it to a div (instead of a pre inside a p, which isn... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1887415875d4f90a145f6c7491395e30a78767aa;p=horde.git Add a dom id to details, move it to a div (instead of a pre inside a p, which isn't valid). Also remove some unnecessary code now that we show a backtrace instead of file/line. --- diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 2e0953c1f..f34ad787f 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -114,15 +114,6 @@ class Horde $errortext .= '

' . htmlspecialchars($error) . '

'; } - if ($error instanceof Exception) { - if (is_null($file)) { - $file = $error->getFile(); - } - if (is_null($line)) { - $line = $error->getLine(); - } - } - if ($admin) { if ($error instanceof Exception) { $trace = $error; @@ -132,9 +123,9 @@ class Horde $backtrace = new Horde_Support_Backtrace($trace); $errortext .= '
' . $backtrace->getMap() . '
'; if (is_object($error)) { - $errortext .= '

' . _("Details:") . '

'; + $errortext .= '

' . _("Details") . '

'; $errortext .= '

' . _("The full error message is logged in Horde's log file, and is shown below only to administrators. Non-administrative users will not see error details.") . '

'; - $errortext .= '

' . htmlspecialchars(print_r($error, true)) . '

'; + $errortext .= '
' . htmlspecialchars(print_r($error, true)) . '
'; } } elseif ($log) { $errortext .= '

' . _("Details have been logged for the administrator.") . '

';