Better display of the query if parser is disabled.

This commit is contained in:
Alexander M. Turek
2002-10-30 14:18:06 +00:00
parent 8a0558a6b9
commit 93f7ebbd60
2 changed files with 8 additions and 1 deletions

View File

@@ -6,6 +6,10 @@ $Id$
$Source$ $Source$
2002-10-30 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/common.lib.php3: Better display of the query if parser is
disabled.
2002-10-28 Alexander M. Turek <rabus@users.sourceforge.net> 2002-10-28 Alexander M. Turek <rabus@users.sourceforge.net>
* lang/dutch.inc.php3: Fixed a bug in the Dutch language files * lang/dutch.inc.php3: Fixed a bug in the Dutch language files
(see Translations #629818). (see Translations #629818).

View File

@@ -267,7 +267,10 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
if (!is_array($parsed_sql)) { if (!is_array($parsed_sql)) {
// We don't so just return the input directly // We don't so just return the input directly
// This is intended to be used for when the SQL Parser is turned off // This is intended to be used for when the SQL Parser is turned off
return $parsed_sql; $formatted_sql = '<pre>' . "\n"
. $parsed_sql . "\n"
. '</pre>';
return $formatted_sql;
} }
$formatted_sql = ''; $formatted_sql = '';