add import archive langs

This commit is contained in:
IT 2015-05-06 16:50:51 +08:00
parent 2bddb38c31
commit f886a32615
1 changed files with 4 additions and 4 deletions

View File

@ -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