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

Category: Fix Category updates not working in layout.few databases

This commit is contained in:
gnosygnu
2017-02-21 16:24:33 -05:00
parent 1179e2848f
commit edb23bb47e
4 changed files with 435 additions and 4 deletions

View File

@@ -30,8 +30,8 @@ public class Xoa_app_ {
}
}
public static final String Name = "xowa";
public static final int Version_id = 515;
public static final String Version = "4.2.0.1702";
public static final int Version_id = 516;
public static final String Version = "4.3.0.1702";
public static String Build_date = "2012-12-30 00:00:00";
public static String Build_date_fmt = "yyyy-MM-dd HH:mm:ss";
public static String Op_sys_str;

View File

@@ -163,8 +163,13 @@ public class Xow_db_mgr {
add = true; // text will be in db if solo;
break;
case Xow_db_file_.Tid__text: // EX: "en.wikipedia.org-text-ns.000.xowa"
int db_ns_id = Int_.parse(db.Ns_ids());
add = db_ns_id == ns_id; // text will be in db if ns matches; EX: en.wikipedia.org-text-ns.014.xowa
int[] db_ns_ids = Int_.Ary_parse(db.Ns_ids(), "|"); // need to handle both "0" and "0|4"
for (int db_ns_id : db_ns_ids) {
if (db_ns_id == ns_id) {
add = true; // text will be in db if ns matches; EX: en.wikipedia.org-text-ns.014.xowa
break;
}
}
break;
}
break;