From 47ea47710c244ec6cb421bf916a20521036ca37e Mon Sep 17 00:00:00 2001 From: markjcrane Date: Mon, 7 Mar 2016 10:30:29 -0700 Subject: [PATCH] Fix the phrases_dir if statement. If the phrases_dir is not null then need to include xml from the file system. --- .../app/xml_handler/resources/scripts/languages/languages.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/languages/languages.lua b/resources/install/scripts/app/xml_handler/resources/scripts/languages/languages.lua index 7777e5c60d..f12817b03a 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/languages/languages.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/languages/languages.lua @@ -144,7 +144,7 @@ --if nil do nt include language xml from the file system the phrases directory is not set in default settings - category: switch name: phrases_dir or its false --it also can be nil if config.lua is not writable so that it can be defined in it - if (phrases_dir == nil) then + if (phrases_dir ~= nil) then --read root xml language file, parse included xml files local xml_file_paths = {} local file_handle = io.open(phrases_dir.."/"..language.."/"..language..".xml", "r");