forked from miraheze/mw-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SemanticMediaWiki.php
71 lines (64 loc) · 1.45 KB
/
SemanticMediaWiki.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
$smwgNamespacesWithSemanticLinks = [
NS_MAIN => true,
NS_TALK => false,
NS_USER => true,
NS_USER_TALK => false,
NS_PROJECT => true,
NS_PROJECT_TALK => false,
NS_FILE => true,
NS_FILE_TALK => false,
NS_MEDIAWIKI => false,
NS_MEDIAWIKI_TALK => false,
NS_TEMPLATE => false,
NS_TEMPLATE_TALK => false,
NS_HELP => true,
NS_HELP_TALK => false,
NS_CATEGORY => true,
NS_CATEGORY_TALK => false,
];
$smwgPageSpecialProperties = [
'_MDAT',
'_MIME',
'_MEDIA',
'_ATTCH_LINK',
];
$smwgMainCacheType = 'memcached-mem-2';
if ( !class_exists( SMW\Setup::class ) ) {
require_once "$IP/extensions/SemanticMediaWiki/src/MediaWiki/HookDispatcherAwareTrait.php";
require_once "$IP/extensions/SemanticMediaWiki/src/Setup.php";
}
if ( $wgDBname === 'constantnoblewiki' ) {
array_push( $smwgPageSpecialProperties, '_CDAT' );
$smwgNamespacesWithSemanticLinks = [
NS_MAIN => true,
NS_TALK => false,
NS_USER => true,
NS_USER_TALK => false,
NS_PROJECT => true,
NS_PROJECT_TALK => false,
NS_FILE => true,
NS_FILE_TALK => false,
NS_MEDIAWIKI => true,
NS_MEDIAWIKI_TALK => false,
NS_TEMPLATE => true,
NS_TEMPLATE_TALK => false,
NS_HELP => true,
NS_HELP_TALK => false,
NS_CATEGORY => true,
NS_CATEGORY_TALK => false,
3008 => true,
3009 => false,
3012 => true,
3013 => false,
3032 => true,
3033 => false,
3034 => true,
3035 => false,
3036 => true,
3037 => false,
3040 => true,
3041 => false,
];
$smwgQMaxInlineLimit = 750;
}