forked from Illvili/MsUpload-Moegirl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMsUpload.php
59 lines (52 loc) · 1.5 KB
/
MsUpload.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
<?php
$wgExtensionCredits['parserhook'][] = array(
'name' => 'MsUpload',
'url' => 'http://www.mediawiki.org/wiki/Extension:MsUpload',
'version' => '10.3',
'descriptionmsg' => 'msu-desc',
'license-name' => 'GPL-2.0+',
'author' => array( '[mailto:[email protected] Martin Schwindl]', '[mailto:[email protected] Martin Keyler]', '[https://www.mediawiki.org/wiki/User:Luis_Felipe_Schenone Luis Felipe Schenone]' ),
);
$wgResourceModules['ext.MsUpload'] = array(
'scripts' => array(
'plupload/plupload.full.min.js',
'MsUpload.js'
),
'dependencies' => array(
'jquery.ui.progressbar',
'ext.wikiEditor.toolbar'
),
'styles' => 'MsUpload.css',
'messages' => array(
'msu-description',
'msu-button-title',
'msu-insert-link',
'msu-insert-gallery',
'msu-insert-files',
'msu-insert-links',
'msu-insert-picture',
'msu-insert-movie',
'msu-cancel-upload',
'msu-replace-file',
'msu-clean-all',
'msu-upload-possible',
'msu-ext-not-allowed',
'msu-upload-this',
'msu-upload-all',
'msu-dropzone',
'msu-comment',
),
'localBasePath' => __DIR__,
'remoteExtPath' => 'MsUpload',
);
$wgMessagesDirs['MsUpload'] = __DIR__ . '/i18n';
$wgAutoloadClasses['MsUpload'] = __DIR__ . '/MsUpload.body.php';
$wgHooks['EditPage::showEditForm:initial'][] = 'MsUpload::start';
$wgAjaxExportList[] = 'MsUpload::saveCat';
// Default configuration
$wgMSU_useDragDrop = true;
$wgMSU_showAutoCat = true;
$wgMSU_checkAutoCat = true;
$wgMSU_useMsLinks = false;
$wgMSU_confirmReplace = true;
$wgMSU_imgParams = '400px';