Re: [PATCH/RFC] Export file attachements in git-remote-mediawiki
- From
- nguyenki <nguyenki@ensibm.imag.fr>
- Date
- Jun 5, 2012, 17:11 UTC
- Message-ID
- <d94a39850ce5bbf2dcab73c751574a1a@ensibm.imag.fr>
- In-Reply-To
- <vpqvcj6lq1m.fsf@bauges.imag.fr>
On Mon, 04 Jun 2012 23:34:29 +0200, Matthieu Moy wrote:
> NGUYEN Kim Thuat <kim-thuat.nguyen@ensimag.imag.fr> writes: >
Show 12 quoted lines
>> + } else {
>> + my $content = run_git_raw("cat-file blob $new_sha1");
>> + mw_connect_maybe();
>> + $mediawiki->{config}->{upload_url} =
>> "$url/index.php/Special:Upload";
>
> Broken indentation.
>
> Does this work on wiki configured in foreign languages, like french
> that
> has Spécial:Téléverser instead?
>[[Special:Upload]] will work on any wiki, since the English names (known internally as the "canonical" page) will work regardless of the wiki's language.
For example, if you go to http://fr.wikipedia.org/wiki/Special:Upload, you'll see that it redirects automatically.