From: nguyenki Date: Tue, 05 Jun 2012 17:11:52 GMT Subject: Re: [PATCH/RFC] Export file attachements in git-remote-mediawiki Message-ID: In-Reply-To: On Mon, 04 Jun 2012 23:34:29 +0200, Matthieu Moy wrote: > NGUYEN Kim Thuat writes: > >> + } 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.