diff options
author | Yorhel <git@yorhel.nl> | 2009-10-12 09:34:06 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-10-12 09:34:06 +0200 |
commit | 69d8738688ebb72707fe377b7ce7c717407aea96 (patch) | |
tree | 339e1b0cfcb860f152ef46a2a30638a053335370 /lib/VNDB/Util/CommonHTML.pm | |
parent | 0c5a9606dd9047522c4357e36e5fe9081943b947 (diff) |
SQL: Converted changes.type to an ENUM
This is a very important column in a very important table, I hope I
didn't forget to update a piece of code somewhere...
Diffstat (limited to 'lib/VNDB/Util/CommonHTML.pm')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index 7e98159a..90c9db13 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -505,12 +505,11 @@ sub htmlHistory { ], row => sub { my($s, $n, $i) = @_; - my $tc = [qw|v r p|]->[$i->{type}]; - my $revurl = "/$tc$i->{iid}.$i->{rev}"; + my $revurl = "/$i->{type}$i->{iid}.$i->{rev}"; Tr $n % 2 ? ( class => 'odd' ) : (); td class => 'tc1_1'; - a href => $revurl, "$tc$i->{iid}"; + a href => $revurl, "$i->{type}$i->{iid}"; end; td class => 'tc1_2'; a href => $revurl, ".$i->{rev}"; |