You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the page is 'Main Page' then this will try to compare Main_Page with Main Page and fail
I believe using
if (Bry_.Eq(ttl.Page_db(), wiki.Props().Siteinfo_mainpage()))
will perform the correct check (which is what I do in Xow_portal_mgr.java)
Honestly, I really expected both to be the same. But in the end, Siteinfo_mainpage() should be correct. Main_page() should be deprecated: it's used to "override" the Main_Page that's found in the xml dump.
Perhaps taking a leaf out of Mediawiki's book, introduce a ttl.isMainPage()
In contrast, XOWA's title object is pretty self-contained and doesn't have any dependencies on other objects. Adding a call to Xow_msg_mgr may add more headaches, especially since the Xoa_ttl class is used at such a low level
On researching #278 I stumbled across some code in Xog_tab_itm_edit_mgr.java
Line 103 reads
If the page is 'Main Page' then this will try to compare
Main_Page
withMain Page
and failI believe using
will perform the correct check (which is what I do in Xow_portal_mgr.java)
Perhaps taking a leaf out of Mediawiki's book, introduce a
ttl.isMainPage()
?The text was updated successfully, but these errors were encountered: