Fix the phrases_dir if statement. If the phrases_dir is not null then need to include xml from the file system.

This commit is contained in:
markjcrane 2016-03-07 10:30:29 -07:00
parent 75780c1ec1
commit 47ea47710c
1 changed files with 1 additions and 1 deletions

View File

@ -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");