Change the order of the code so that domain_name is preserved for multi-tenant in additional cases.

This commit is contained in:
Mark Crane 2014-08-06 06:31:47 +00:00
parent a07f7871e3
commit 6bfe9350bb
1 changed files with 4 additions and 5 deletions

View File

@ -142,11 +142,6 @@ if ( session:ready() ) then
--set the base recordings dir
base_recordings_dir = recordings_dir;
--get the recordings from the config.lua and append the domain_name if the system is multi-tenant
if (domain_count > 1) then
recordings_dir = recordings_dir .. "/" .. domain_name;
end
--use the recording_dir when the variable is set
if (session:getVariable("recordings_dir")) then
if (base_recordings_dir ~= session:getVariable("recordings_dir")) then
@ -154,6 +149,10 @@ if ( session:ready() ) then
end
end
--get the recordings from the config.lua and append the domain_name if the system is multi-tenant
if (domain_count > 1) then
recordings_dir = recordings_dir .. "/" .. domain_name;
end
--set the sounds path for the language, dialect and voice
default_language = session:getVariable("default_language");
default_dialect = session:getVariable("default_dialect");