On Sat, Dec 19, 2009 at 8:09 PM, nevio carlos de alarcão
<nevinhoalarcao(a)gmail.com> wrote:
Hi,
I am proud to announce that yesterday I had a meeting on the company
techcology department and they have agreed to iniciate some tests with the
script that allows mediawiki to use files from wikimedia commons.
Meanwhile I would like to do some tests by my own on the wiki I installed
locally at home. I have to write the code below to enable media files from
wikimedia commons, Where do I have to write it? Is there a specific line of
Localsettings?
$wgForeignFileRepos[] = array(
'class' => 'ForeignAPIRepo',
'name' => 'shared',
'apibase' =>
'http://commons.wikimedia.org/w/api.php',
'fetchDescription' => true, // Optional
'descriptionCacheExpiry' => 43200, // 12 hours, optional
'apiThumbCacheExpiry' => 43200, // 12 hours, optional, but
required for local thumb caching
);
Thanks in advance, Nevio
--
{+}Nevinho
Venha para o Movimento Colaborativo
http://sextapoetica.com.br !!
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Anywhere in LocalSettings should do it. I'm assuming you're running
a fairly recent installation of Mediawiki, as well?
-Chad