From 93f7ebbd60c95dcceb254d69b8cd9a53a176300a Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Wed, 30 Oct 2002 14:18:06 +0000 Subject: [PATCH] Better display of the query if parser is disabled. --- ChangeLog | 4 ++++ libraries/common.lib.php3 | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 16c2f4e9c..ab7d1fe3f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,10 @@ $Id$ $Source$ +2002-10-30 Alexander M. Turek + * libraries/common.lib.php3: Better display of the query if parser is + disabled. + 2002-10-28 Alexander M. Turek * lang/dutch.inc.php3: Fixed a bug in the Dutch language files (see Translations #629818). diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index 9264af8ba..5fb0e8df8 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -267,7 +267,10 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} if (!is_array($parsed_sql)) { // We don't so just return the input directly // This is intended to be used for when the SQL Parser is turned off - return $parsed_sql; + $formatted_sql = '
' . "\n"
+                           . $parsed_sql . "\n"
+                           . '
'; + return $formatted_sql; } $formatted_sql = '';