blob: cad5ab7c7bbb4550b51f706919874d18afcae937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<?php
/**
* Initialization file for the External Data extension
*
* @file
* @ingroup ExternalData
* @author Yaron Koren
*/
if ( function_exists( 'wfLoadExtension' ) ) {
wfLoadExtension( 'ExternalData' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['ExternalData'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['ExternalDataMagic'] = __DIR__ . '/ExternalData.i18n.magic.php';
/* wfWarn(
'Deprecated PHP entry point used for External Data extension. Please use wfLoadExtension instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
return;
}
if ( !defined( 'MEDIAWIKI' ) ) die();
$wgExtensionCredits['parserhook'][] = array(
'path' => __FILE__,
'name' => 'External Data',
'version' => '1.9',
'author' => array( 'Yaron Koren', '...' ),
'url' => 'https://www.mediawiki.org/wiki/Extension:External_Data',
'descriptionmsg' => 'externaldata-desc',
'license-name' => 'GPL-2.0-or-later'
);
$wgHooks['ParserFirstCallInit'][] = 'ExternalDataHooks::registerParser';
$wgMessagesDirs['ExternalData'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['ExternalDataMagic'] = __DIR__ . '/ExternalData.i18n.magic.php';
// Register all special pages and other classes
$wgAutoloadClasses['ExternalDataHooks'] = __DIR__ . '/ExternalData.hooks.php';
$wgAutoloadClasses['EDUtils'] = __DIR__ . '/includes/ED_Utils.php';
$wgAutoloadClasses['EDParserFunctions'] = __DIR__ . '/includes/ED_ParserFunctions.php';
$wgSpecialPages['GetData'] = 'EDGetData';
$wgAutoloadClasses['EDGetData'] = __DIR__ . '/includes/ED_GetData.php';
$edgValues = array();
$edgStringReplacements = array();
$edgCacheTable = null;
$edgAllowSSL = true;
$edgExternalValueVerbose = true;
// Value is in seconds - set to one week
$edgCacheExpireTime = 60 * 60 * 24 * 7;
$edgDBServer = array();
$edgDBServerType = array();
$edgDBName = array();
$edgDBUser = array();
$edgDBPass = array();
$edgDBDirectory = array();
$edgDBFlags = array();
$edgDBTablePrefix = array();
$edgDirectoryPath = array();
$edgFilePath = array();
|