mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Cfg: Convert 'Wiki - HTML databases'
This commit is contained in:
@@ -36,8 +36,9 @@ public class Xowe_page_mgr {
|
||||
|
||||
// load page from html_db
|
||||
boolean from_html_db = page.Db().Page().Html_db_id() != -1;
|
||||
boolean read_from_html_db_preferred = wiki.Html__hdump_mgr().Load_mgr().Read_preferred();
|
||||
if (from_html_db) {
|
||||
if (wiki.Appe().Api_root().Wiki().Hdump().Read_preferred()) {
|
||||
if (read_from_html_db_preferred) {
|
||||
wiki.Html__hdump_mgr().Load_mgr().Load_by_edit(page);
|
||||
from_html_db = Bry_.Len_gt_0(page.Db().Html().Html_bry()); // NOTE: archive.org has some wtxt_dbs which included page|html_db_id without actual html_dbs; DATE:2016-06-22
|
||||
}
|
||||
@@ -52,7 +53,7 @@ public class Xowe_page_mgr {
|
||||
// load from html_dbs if no wtxt found and option just marked as not read_preferred
|
||||
if ( Bry_.Len_eq_0(page.Db().Text().Text_bry()) // no wtxt found
|
||||
&& !ttl.Ns().Id_is_special() // skip special
|
||||
&& !wiki.Appe().Api_root().Wiki().Hdump().Read_preferred() // read preferred not marked
|
||||
&& !read_from_html_db_preferred // read preferred not marked
|
||||
) {
|
||||
wiki.Html__hdump_mgr().Load_mgr().Load_by_edit(page);
|
||||
from_html_db = Bry_.Len_gt_0(page.Db().Html().Html_bry());
|
||||
|
||||
Reference in New Issue
Block a user