https://bugzilla.wikimedia.org/show_bug.cgi?id=19183
Brion Vibber <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Brion Vibber <[email protected]> 2009-06-23 01:01:19 UTC --- Looks like it should work fine: # If the text can be treated as a title, use it verbatim. # Otherwise, pull the titles from the links table $dp = Title::newFromText($dMsgText); if( $dp ) { if($dp->getNamespace() != NS_TEMPLATE) { # FIXME we assume the disambiguation message is a template but # the page can potentially be from another namespace :/ wfDebug("Mediawiki:disambiguationspage message does not refer to a template!\n"); } $linkBatch->addObj( $dp ); } else { # Get all the templates linked from the Mediawiki:Disambiguationspage [snip] } IMO this is pretty awkward -- requires no brackets for a single item, *or* brackets around multiple items -- but it'll work. In fact, it would *fail* to work if the requested change were made, since on a default install the page wouldn't be recorded in the database until it was customized, so the check for live templatelinks would fail to recover anything. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
