https://bugzilla.wikimedia.org/show_bug.cgi?id=40192

This, that and the other <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from This, that and the other <[email protected]> ---
I just took a look at this:

As far as I can tell, the problem here is that the WikiImporter class (in
Import.php) uses a Title object to store the title of the original page.
However, WikiImporter doesn't know about interwiki prefixes, so it creates a
Title with no interwiki prefix. This causes the Title class to assume it is
dealing with a local page, so it uses local namespace names when generating a
display form of the title.

This could partly be solved by always using canonical namespace names in the
edit summary. However, that would probably fail in the following scenario:

* import "Portal:Foo" to a wiki where "Portal" is set as a namespace alias for
  the "Portada" namespace
* Title object returns a link to "Portada:Foo", which doesn't exist on the
  source wiki

But I am inclined to think it is a better stopgap solution (fixes the vast
majority of cases) until someone can be bothered to overhaul WikiImporter!

-- 
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

Reply via email to