Skip to content

Commit c907375

Browse files
committed
Replacing div to pre at the messageQuit method
1 parent 0442323 commit c907375

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

manager/includes/document.parser.class.inc.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6236,7 +6236,6 @@ public function phpError($nr, $text, $file, $line)
62366236
*/
62376237
public function messageQuit($msg = 'unspecified error', $query = '', $is_error = true, $nr = '', $file = '', $source = '', $text = '', $line = '', $output = '')
62386238
{
6239-
62406239
if (0 < $this->messageQuitCount) {
62416240
return;
62426241
}
@@ -6270,7 +6269,7 @@ public function messageQuit($msg = 'unspecified error', $query = '', $is_error =
62706269
}
62716270

62726271
if (!empty ($query)) {
6273-
$str .= '<div style="font-weight:bold;border:1px solid #ccc;padding:8px;color:#333;background-color:#ffffcd;margin-bottom:15px;">SQL &gt; <span id="sqlHolder">' . $query . '</span></div>';
6272+
$str .= '<pre style="font-weight:bold;border:1px solid #ccc;padding:8px;color:#333;background-color:#ffffcd;margin-bottom:15px;">SQL &gt; <span id="sqlHolder">' . $query . '</span></pre>';
62746273
}
62756274

62766275
$errortype = array(
@@ -6293,10 +6292,10 @@ public function messageQuit($msg = 'unspecified error', $query = '', $is_error =
62936292

62946293
if (!empty($nr) || !empty($file)) {
62956294
if ($text != '') {
6296-
$str .= '<div style="font-weight:bold;border:1px solid #ccc;padding:8px;color:#333;background-color:#ffffcd;margin-bottom:15px;">Error : ' . $text . '</div>';
6295+
$str .= '<pre style="font-weight:bold;border:1px solid #ccc;padding:8px;color:#333;background-color:#ffffcd;margin-bottom:15px;">Error : ' . $text . '</pre>';
62976296
}
62986297
if ($output != '') {
6299-
$str .= '<div style="font-weight:bold;border:1px solid #ccc;padding:8px;color:#333;background-color:#ffffcd;margin-bottom:15px;">' . $output . '</div>';
6298+
$str .= '<pre style="font-weight:bold;border:1px solid #ccc;padding:8px;color:#333;background-color:#ffffcd;margin-bottom:15px;">' . $output . '</pre>';
63006299
}
63016300
if ($nr !== '') {
63026301
$table[] = array('ErrorType[num]', $errortype [$nr] . "[" . $nr . "]");

0 commit comments

Comments
 (0)