1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Embeddable: Fix multi-threaded error due to incorrect locking when lowercasing template names

This commit is contained in:
gnosygnu
2017-01-26 01:42:25 -05:00
parent 6867cc23b4
commit af5b7569ee
2 changed files with 5 additions and 13 deletions

View File

@@ -25,8 +25,10 @@ public class Xop_mediawiki_mgr {
Io_url root_dir = Io_url_.new_dir_(root_str);
this.mode_is_prod = mode_is_prod;
if (mode_is_prod)
if (mode_is_prod) {
gplx.dbs.Db_conn_bldr.Instance.Reg_default_sqlite();
gplx.core.envs.Env_.Init_swt(String_.Ary_empty, Type_adp_.ClassOf_obj(this)); // must call Init else unit_testing will be true
}
this.app = new Xoae_app(usr_dlg, gplx.xowa.apps.Xoa_app_mode.Itm_cmd
, root_dir
, root_dir.GenSubDir("wiki")