1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-09-29 23:10:52 +00:00

Custom_wiki: Do not delete xml file after import

This commit is contained in:
gnosygnu 2017-02-02 11:16:43 -05:00
parent 9916c3efaf
commit e7ae5d0435

View File

@ -65,7 +65,9 @@ class Xoi_cmd_wiki_import implements Gfo_thread_cmd {
wiki.Html_mgr().Page_wtr_mgr().Init_(true);
wiki.Init_assert();
if (String_.Eq(src_url.Ext(), ".xml")) {
if (app.Cfg().Get_bool_app_or("xowa.bldr.import.delete_xml_file", true)) // CFG: Cfg__
if ( app.Cfg().Get_bool_app_or("xowa.bldr.import.delete_xml_file", true) // CFG: Cfg__
&& Io_mgr.Instance.ExistsFil(src_url.GenNewExt(".bz2")) // only delete the file if there is a corresponding bz2 file; BUG.GH:#124; DATE:2017-02-02
)
Io_mgr.Instance.DeleteFil(src_url);
}
else if (String_.Eq(src_url.Ext(), ".bz2")) {