fetch languages on demand to reduce database references

This commit is contained in:
Krasimir Angelov committed 2024-03-14 20:05:19 +01:00
1 parent a8c5a4f93f
commit 1fd0e9d8e2
4 files changed
+26 -33

No files matched your search

+1 -1
View File
@@ -372,7 +372,7 @@ updatePGF pgf mb_txnid f = do
mb_txnid
optLang pgf opts =
case Map.keys (languages pgf) of
case Map.keys langs of
[lang] -> completeLang (valStrOpts "lang" lang opts)
_ -> case valStrOpts "lang" "" opts of
"" -> fail "Specify a language to change"