diff options
author | Yorhel <git@yorhel.nl> | 2011-01-25 16:45:45 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-01-25 17:07:06 +0100 |
commit | e46f634c49aa4e174d6cc351b25a60d33c251b25 (patch) | |
tree | 7bf39676260b9c266c083f63ad2522faf79c4b0f /lib/VNDB/Util/LayoutHTML.pm | |
parent | e23b49f3bd6fddca80076f1dc19e5f913400ff48 (diff) |
TUWF: Initial convert from YAWF to TUWF
There may still be some bugs present and I've only converted the points
where TUWF is incompatible with YAWF. The new TUWF features are not in
use yet, I'll do that later on.
Note that, in order to run the new code, TUWF must be installed on your
system. The configuration for the TransAdmin plugin has also changed.
Other than that there shouldn't be any issues.
Diffstat (limited to 'lib/VNDB/Util/LayoutHTML.pm')
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index cc34b874..fe5f0679 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -3,7 +3,7 @@ package VNDB::Util::LayoutHTML; use strict; use warnings; -use YAWF ':html'; +use TUWF ':html'; use Exporter 'import'; use VNDB::Func; @@ -143,7 +143,8 @@ sub htmlFooter { # %options => { prefs => [pref1,..] } if($q && $q->{vid}) { lit '"'; a href => "/v$q->{vid}", style => 'text-decoration: none', $q->{quote}; - txt qq|"\n|; + txt '"'; + br; } txt "vndb $self->{version} | "; @@ -174,7 +175,7 @@ sub htmlFooter { # %options => { prefs => [pref1,..] } # write the SQL queries as a HTML comment when debugging is enabled if($self->debug) { lit "\n<!--\n SQL Queries:\n"; - for (@{$self->{_YAWF}{DB}{queries}}) { + for (@{$self->{_TUWF}{DB}{queries}}) { my $q = !ref $_->[0] ? $_->[0] : $_->[0][0].(exists $_->[0][1] ? ' | "'.join('", "', map defined()?$_:'NULL', @{$_->[0]}[1..$#{$_->[0]}]).'"' : ''); $q =~ s/^\s//g; |