Fixed in r106957. I apparently made the commit too quickly, I also forgot a
} with elseif.

For the /variant/ instead of /wiki/, I think it will work for the old
secure server but for the normal URLs there is a preg_replace '/^\/wiki\//'
so it won't recognise a variant there (it would default to the Main Page).
However, I think such URLs are only configured for Chinese and Serbian,
which have all projects except Wikiversity (which uses the static error
page).

2011/12/21 Liangent <[email protected]>

> On Wed, Dec 21, 2011 at 4:36 PM, Roan Kattouw <[email protected]>
> wrote:
> >> I tried to address URLs like /w/index.php?title= in r106857 but I'm not
> >> sure it is the correct way. It's difficult to test.
> >> If no /wiki/Page or $_GET['title'] defined, it will default to the Main
> >> Page.
> >>
> > That logic looks good to me. Your change seems to have broken it
> > again, though, see
> > https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106857#c28196 .
> >
>
> What about paths in /<variant>/<pagename> style?
> -Liangent
>
>
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to