-
-
Notifications
You must be signed in to change notification settings - Fork 247
/
SemanticMediaWiki.php
102 lines (94 loc) · 2.27 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
/*
* This can be dangerous!
* Remember to run setupStore.php and follow the instructions on
* Tech:Semantic MediaWiki under the following conditions:
* - Semantic MediaWiki is enabled on a new wiki
* - Semantic MediaWiki is upgraded
* - MediaWiki is upgraded
* - $smwgPageSpecialProperties is changed
* - $smwgFixedProperties is changed
* - $smwgDefaultStore is changed
* - $smwgEnabledFulltextSearch is changed
* - $smwgEntityCollation is changed
* - $smwgFieldTypeFeatures is changed
* @see https://meta.miraheze.org/wiki/Tech:Semantic_MediaWiki
*/
$smwgIgnoreUpgradeKeyCheck = true;
$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 = 'mcrouter';
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,
3018 => true,
3019 => false,
3020 => true,
3021 => false,
3022 => true,
3023 => false,
3024 => true,
3025 => false,
3026 => true,
3027 => false,
3032 => true,
3033 => false,
3034 => true,
3035 => false,
3036 => true,
3037 => false,
3040 => true,
3041 => false,
3044 => true,
3045 => false,
3050 => true,
3051 => false,
];
$smwgQMaxInlineLimit = 750;
}