-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExampleLocalSettings.php
More file actions
50 lines (42 loc) · 1.39 KB
/
Copy pathExampleLocalSettings.php
File metadata and controls
50 lines (42 loc) · 1.39 KB
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
<?php
## Uploads
$wgEnableUploads = true;
$wgGroupPermissions['*']['upload'] = true;
$wgGroupPermissions['*']['reupload'] = true;
$wgCountCategorizedImagesAsUsed = true;
## University namespaces
function defineNS($const, $id, $text){
global $wgExtraNamespaces;
define($const, $id);
$wgExtraNamespaces[$id] = $text;
define($const . '_TALK', $id + 1);
$wgExtraNamespaces[$id+1] = $text . '_Diskussion';
}
$vowiUniNamespaces = []; # id => text
function defineUniNS($const, $id, $text){
global $wgNamespacesWithSubpages;
global $vowiUniNamespaces;
$vowiUniNamespaces[$id] = $text;
$text = str_replace(' ', '_', $text);
defineNS($const, $id, $text);
defineNS($const.'_NAV', $id + 1000, $text.'_Nav');
$wgNamespacesWithSubpages[$id] = 1;
$wgNamespacesWithSubpages[$id + 1000] = 1;
}
defineUniNS('NS_TU_WIEN', 3000, 'TU Wien');
defineUniNS('NS_UNI_WIEN', 3002, 'Uni Wien');
defineUniNS('NS_MU_WIEN', 3004, 'MU Wien');
defineUniNS('NS_SONSTIGE', 3006, 'Sonstige');
## Soft dependencies
wfLoadExtension( 'MobileFrontend' );
wfLoadSkin( 'MinervaNeue' );
$wgMFDefaultSkinClass = 'SkinMinerva';
## Hard dependencies
wfLoadExtension( 'Attachments' );
$wgAttachmentsNamespaces = $vowiUniNamespaces;
wfLoadExtension( 'FlexiblePrefix' );
$wgFlexiblePrefixNamespaces = array_keys($vowiUniNamespaces);
## Load this extension
wfLoadExtension( 'VoWi' );
$wgUniNamespaces = $vowiUniNamespaces;
$wgSearchType = 'VoWiSearch';