Fix a shorthash encoding confusion

This commit is contained in:
Yorhel 2023-04-30 09:01:38 +02:00
parent 81c9ec53ff
commit 962ded97f5

View file

@ -827,7 +827,7 @@ sub man_page {
JOIN locales l ON l.id = f.locale
WHERE m.name =', \$man->{name}, 'AND m.section =', \$man->{section}, '
AND l.locale =', \$man->{locale}, '
AND f.shorthash <> ', \shorthash_to_int($man->{shorthash}), '
AND f.shorthash <> ', \$man->{shorthash}, '
LIMIT 1'
);
my @htmllang = $man->{locale} =~ /^([a-z]{2,3})(?:_([A-Z]{2}))?(?:$|@|\.)/ ? (lang => $1.($2?"-$2":'')) : ();