forked from Orain/CreateWiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateWiki.php
38 lines (33 loc) · 1.29 KB
/
CreateWiki.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
<?php
if ( !defined( 'MEDIAWIKI' ) ) {
exit( 1 );
}
$wgExtensionCredits['specialpage'][] = array(
'author' => 'Kudu',
'descriptionmsg' => 'createwiki-desc',
'name' => 'CreateWiki',
'path' => __FILE__,
'url' => '//github.com/Orain/CreateWiki'
);
$wgAutoloadClasses['SpecialCreateWiki'] = dirname( __FILE__ ) . '/lib/class_cloudflare.php';
$wgAutoloadClasses['SpecialCreateWiki'] = dirname( __FILE__ ) . '/SpecialCreateWiki.php';
$wgExtensionMessagesFiles['CreateWiki'] = dirname( __FILE__ ) . '/CreateWiki.i18n.php';
$wgMessagesDirs['CreateWiki'] = dirname( __FILE__ ) . '/i18n';
$wgExtensionMessagesFiles['CreateWikiAlias'] = dirname( __FILE__ ) . '/CreateWiki.alias.php';
$wgSpecialPages['CreateWiki'] = 'SpecialCreateWiki';
$wgAvailableRights[] = 'createwiki';
$wgLogTypes[] = 'farmer';
$wgLogActionsHandlers['farmer/*'] = 'LogFormatter';
/**
* SQL files to be sourced into the created databases.
*/
$wgCreateWikiSQLfiles = array(
"$IP/maintenance/tables.sql",
"$IP/extensions/AbuseFilter/abusefilter.tables.sql",
"$IP/extensions/AntiSpoof/sql/patch-antispoof.mysql.sql",
"$IP/extensions/CentralNotice/CentralNotice.sql",
"$IP/extensions/CheckUser/cu_changes.sql",
"$IP/extensions/CheckUser/cu_log.sql",
"$IP/extensions/CreateWiki/global_block_whitelist.sql",
"$IP/extensions/TitleKey/titlekey.sql"
);