On Tue, Aug 4, 2009 at 8:42 PM, Kalan<[email protected]> wrote:
> On Tue, Aug 4, 2009 at 21:44, Merlijn van Deen<[email protected]> wrote:
>> An empty page title is a non-normalized name for 'Main Page' in
>> mediawiki (except for 'delete' actions).
> [citation needed]. Is it used anywhere else but URL conversions?
includes/Wiki.php:113
113 :   } elseif( '' == $title && 'delete' != $action ) {
114 :           $ret = Title::newMainPage();

for example: http://en.wikisource.org/w/index.php?title=&action=edit

>> 3) Brr. 'Main Page' language tables.
> It is the most obvious solution that doesn’t require unclear
> implications to be made. Query MediaWiki:Mainpage, then query the page
> title you get from there.
I hadn't noticed before, but action=query&meta=siteinfo looks about
right. Does require two lookups, though.

-Merlijn

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to