forked from saurabh/orbit4-5
add import archive langs
This commit is contained in:
parent
2bddb38c31
commit
f886a32615
|
@ -121,8 +121,8 @@ class Admin::ImportController < OrbitAdminController
|
|||
if(file['url'])
|
||||
archive = ArchiveFileMultiple.new({
|
||||
:file_title_translations=>file['title'],
|
||||
:choose_lang => @site_valid_locales,
|
||||
:remote_file_url => file['url'],
|
||||
:choose_lang => ["zh_tw", "en"],
|
||||
:remote_file_url => file['url'],
|
||||
:sort_number=>file['sort_number']
|
||||
})
|
||||
archive.save
|
||||
|
@ -132,8 +132,8 @@ class Admin::ImportController < OrbitAdminController
|
|||
if(file['url2'])
|
||||
archive = ArchiveFileMultiple.new({
|
||||
:file_title_translations=>file['title'],
|
||||
:choose_lang => @site_valid_locales,
|
||||
:remote_file_url => file['url2'],
|
||||
:choose_lang => ["zh_tw", "en"],
|
||||
:remote_file_url => file['url2'],
|
||||
:sort_number=>file['sort_number']
|
||||
})
|
||||
archive.save
|
||||
|
|
Loading…
Reference in New Issue