mirror of
https://github.com/YunoHost-Apps/mediawiki_ynh.git
synced 2024-09-03 19:46:05 +02:00
44 lines
1.6 KiB
PHP
44 lines
1.6 KiB
PHP
<?php
|
|
|
|
|
|
/**
|
|
* Directory to store serialized cache files in. Defaults to $wgCacheDirectory.
|
|
* It's OK to share this directory among wikis as long as the wiki you run
|
|
* update.php on has all extensions the other wikis using the same directory
|
|
* have.
|
|
* NOTE: If this variable and $wgCacheDirectory are both false, this extension
|
|
* WILL NOT WORK.
|
|
*/
|
|
$wgLocalisationUpdateDirectory = false;
|
|
|
|
|
|
/**
|
|
* These should point to either an HTTP-accessible file or local file system.
|
|
* $1 is the name of the repo (for extensions) and $2 is the name of file in the repo.
|
|
* $3 and $4 are the same, respectively, but urlencoded for e.g. gitblit.
|
|
*/
|
|
|
|
$wgLocalisationUpdateCoreURL = "https://git.wikimedia.org/raw/mediawiki%2Fcore.git/HEAD/$4";
|
|
$wgLocalisationUpdateExtensionURL = "https://git.wikimedia.org/raw/mediawiki%2Fextensions%2F$3.git/HEAD/$4";
|
|
|
|
/// Deprecated
|
|
$wgLocalisationUpdateSVNURL = false;
|
|
|
|
$wgLocalisationUpdateRetryAttempts = 5;
|
|
|
|
// Info about me!
|
|
$wgExtensionCredits['other'][] = array(
|
|
'path' => __FILE__,
|
|
'name' => 'LocalisationUpdate',
|
|
'author' => array( 'Tom Maaswinkel', 'Niklas Laxström', 'Roan Kattouw' ),
|
|
'version' => '1.0',
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:LocalisationUpdate',
|
|
'descriptionmsg' => 'localisationupdate-desc',
|
|
);
|
|
|
|
$wgHooks['LocalisationCacheRecache'][] = 'LocalisationUpdate::onRecache';
|
|
|
|
$dir = __DIR__ . '/';
|
|
$wgExtensionMessagesFiles['LocalisationUpdate'] = $dir . 'LocalisationUpdate.i18n.php';
|
|
$wgAutoloadClasses['LocalisationUpdate'] = $dir . 'LocalisationUpdate.class.php';
|
|
$wgAutoloadClasses['QuickArrayReader'] = $dir . 'QuickArrayReader.php';
|