From b6f1ba8b8ea4f1936017f98cd8fcdab345016c70 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Fri, 20 Feb 2004 11:23:12 +0000 Subject: [PATCH] c'est plus joli comme ca --- templates/database-debug.tpl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/database-debug.tpl b/templates/database-debug.tpl index 9c165a6..e0e2e32 100644 --- a/templates/database-debug.tpl +++ b/templates/database-debug.tpl @@ -4,11 +4,18 @@
- + {if $query.error} - + {/if}
QUERY:
{$query.query|nl2br}
+ QUERY:
+ {$query.query|regex_replace:"/(\n|^|$) */":"\n "|replace:" ":" "|nl2br} +
+
ERROR:
{$query.error|nl2br}
+ ERROR:
+ {$query.error|nl2br} +
-- 2.1.4