summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB/Misc.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-07-04 13:53:36 +0200
committerYorhel <git@yorhel.nl>2009-07-04 13:53:36 +0200
commit1c3769e0bac96979cc1aba0a80081b69a8470528 (patch)
tree95ce961d93f72b3e14c2b2dd71d65f60eae94f13 /lib/VNDB/DB/Misc.pm
parent45843fa3b02a69951fe7f4144ccdcbca76609180 (diff)
Implemented support for multilingual releases
The 'language' column in releases_rev has been replaced with a releases_lang table. As this is quite a big change, there may still be bugs floating around somewhere.
Diffstat (limited to 'lib/VNDB/DB/Misc.pm')
-rw-r--r--lib/VNDB/DB/Misc.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/DB/Misc.pm b/lib/VNDB/DB/Misc.pm
index c13a38d2..1c21675e 100644
--- a/lib/VNDB/DB/Misc.pm
+++ b/lib/VNDB/DB/Misc.pm
@@ -163,10 +163,10 @@ sub dbItemMod {
sub dbLanguages {
my $self = shift;
return [
- map $_->{language}, @{$self->dbAll(q|
- SELECT DISTINCT rr.language
+ map $_->{lang}, @{$self->dbAll(q|
+ SELECT DISTINCT rl.lang
FROM releases r
- JOIN releases_rev rr ON rr.id = r.latest
+ JOIN releases_lang rl ON rl.rid = r.latest
WHERE r.hidden = FALSE|
)}
];