forked from wikimedia/data-values-value-view
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ValueView.mw.php
56 lines (50 loc) · 1.44 KB
/
ValueView.mw.php
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
<?php
/**
* MediaWiki setup for the "ValueView" extension.
*
* @licence GNU GPL v2+
* @author Daniel Werner < daniel.werner@wikimedia.de >
* @author H. Snater < mediawiki@snater.com >
*/
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'Not an entry point.' );
}
global $wgExtensionCredits, $wgExtensionMessagesFiles, $wgHooks, $wgResourceModules, $wgMessagesDirs;
$wgExtensionCredits['datavalues'][] = array(
'path' => __DIR__,
'name' => 'ValueView',
'version' => VALUEVIEW_VERSION,
'author' => array(
'[https://www.mediawiki.org/wiki/User:Danwe Daniel Werner]',
'[http://www.snater.com H. Snater]',
),
'url' => 'https://www.mediawiki.org/wiki/Extension:ValueView',
'descriptionmsg' => 'valueview-desc',
);
$wgMessagesDirs['ValueView'] = __DIR__ . '/i18n';
/**
* Register QUnit test cases.
* @see https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderTestModules
* @since 0.1
*
* @param array &$testModules
* @param \ResourceLoader &$resourceLoader
* @return boolean
*/
$wgHooks['ResourceLoaderTestModules'][] = function(
array &$testModules,
\ResourceLoader &$resourceLoader
) {
$testModules['qunit'] = array_merge(
$testModules['qunit'],
include( __DIR__ . '/tests/lib/resources.php' ),
include( __DIR__ . '/tests/src/resources.php' )
);
return true;
};
// Register Resource Loader modules:
$wgResourceModules = array_merge(
$wgResourceModules,
include( __DIR__ . '/lib/resources.php' ),
include( __DIR__ . '/src/resources.php' )
);