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

ParserFunctions: Fix broken navboxes on many fr.v pages

This commit is contained in:
gnosygnu
2017-06-01 23:15:35 -04:00
parent d521299987
commit e687f23586
4 changed files with 6 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ class Xow_page_cache_wkr__embeddable implements gplx.xowa.wikis.caches.Xow_page_
public byte[] Get_page_or_null(byte[] full_db) {
byte[] wikitext = null;
// loop to handle redirects
// loop to handle redirects; DATE:2017-05-29
int loops = 0;
while (loops++ < 5) {
wikitext = Bry_.new_u8(cbk.LoadWikitext(String_.new_u8(full_db)));
@@ -34,7 +34,7 @@ class Xow_page_cache_wkr__embeddable implements gplx.xowa.wikis.caches.Xow_page_
if (redirect_ttl == null) {
break;
}
// redirect
// redirect; update title and continue;
else {
full_db = redirect_ttl.Full_db();
continue;