Topic on Project:Support desk

How to acquire Global file usage with $wgForeignFileRepos?

3
Deletedaccount4567435 (talkcontribs)

Hi,

I am trying to use Manual:$wgForeignFileRepos with ForeignAPIRepo as following settings. I can get file description from source commons wiki. However, the source commons wiki can't show which wiki used this file ("Global file usage") as commons.wikimedia.org does.

I do find a extension called Extension:GlobalUsage, but it says it was outdated. So how to acquire global file usage under Mediawiki 1.27 environment?

$wgForeignFileRepos[] = array(

'class'                   => 'ForeignAPIRepo',

'name'                    => 'commons', // Must be a distinct name

'apibase'                 => 'https://commons.mywiki.org/api.php',

'hashLevels'              => 2,

'fetchDescription'        => true, // Optional

'descriptionCacheExpiry'  => 43200, // 12 hours, optional (values are seconds)

'apiThumbCacheExpiry'     => 86400, // 24 hours, optional, but required for local thumb caching

);

Ciencia Al Poder (talkcontribs)
This post was hidden by 87.123.26.109 (history)
Reply to "How to acquire Global file usage with $wgForeignFileRepos?"