summaryrefslogtreecommitdiff
path: root/lib/Multi/API.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-09-11 15:56:54 +0200
committerYorhel <git@yorhel.nl>2019-09-11 15:56:54 +0200
commit7eca65c37be71d9c677cc99153e0df75902ed8cb (patch)
treed3b13511e0169f0f6f5a731c7969420d2cdf56f8 /lib/Multi/API.pm
parent8c1faad14d4e4be29c464a3dcf3e2f340c6f8242 (diff)
VNDB::Types: Convert languages into %LANGUAGE
Diffstat (limited to 'lib/Multi/API.pm')
-rw-r--r--lib/Multi/API.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Multi/API.pm b/lib/Multi/API.pm
index aa767fb2..2665ad49 100644
--- a/lib/Multi/API.pm
+++ b/lib/Multi/API.pm
@@ -16,6 +16,7 @@ use Encode 'encode_utf8', 'decode_utf8';
use Crypt::URandom 'urandom';
use Crypt::ScryptKDF 'scrypt_raw';;
use VNDBUtil 'normalize_query', 'norm_ip';
+use VNDB::Types;
use JSON::XS;
use PWLookup;
@@ -1193,7 +1194,7 @@ sub get_filters {
y/%//;
$v = "%$v%";
} elsif(${$o{process}} eq 'lang') {
- return cerr $c, filter => 'Invalid language code', %e if !$VNDB::S{languages}{$v};
+ return cerr $c, filter => 'Invalid language code', %e if !$LANGUAGE{$v};
} elsif(${$o{process}} eq 'plat') {
return cerr $c, filter => 'Invalid platform code', %e if !$VNDB::S{platforms}{$v};
}