-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMsUpload.php
More file actions
79 lines (71 loc) · 2.02 KB
/
Copy pathMsUpload.php
File metadata and controls
79 lines (71 loc) · 2.02 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
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
<?php
$wgExtensionCredits['parserhook'][] = array(
'name' => 'MsUpload',
'url' => 'http://www.mediawiki.org/wiki/Extension:MsUpload',
'version' => '12.0',
'descriptionmsg' => 'msu-desc',
'license-name' => 'GPL-2.0+',
'author' => array( '[mailto:wiki@ratin.de Martin Schwindl]', '[mailto:wiki@keyler-consult.de Martin Keyler]', '[https://www.mediawiki.org/wiki/User:Luis_Felipe_Schenone Luis Felipe Schenone]' ),
);
$wgResourceModules['ext.MsUploadplupload'] = array(
'scripts' => array(
'plupload/plupload.full.min.js',
),
'localBasePath' => __DIR__,
'remoteExtPath' => 'MmsUpload',
);
$wgResourceModules['ext.MsUpload'] = array(
'scripts' => array(
'MsUpload.js',
'MmsUpload.js'
),
'dependencies' => array(
'jquery.ui.draggable',
'jquery.ui.droppable',
'jquery.ui.sortable',
'jquery.ui.progressbar',
'ext.MsUploadplupload'
),
'styles' => array(
'MsUpload.css',
'MmsUpload.css',
),
'messages' => array(
'msu-button-title',
'msu-insert-link',
'msu-insert-gallery',
'msu-insert-files',
'msu-insert-links',
'msu-insert-image',
'msu-insert-video',
'msu-cancel-upload',
'msu-replace-file',
'msu-clean-all',
'msu-ext-not-allowed',
'msu-upload-this',
'msu-upload-all',
'msu-dropzone',
'msu-comment',
'msu-remove-image',
'msu-upload-nbfile-exceed',
'msu-upload-error-file-too-large',
),
'localBasePath' => __DIR__,
'remoteExtPath' => 'MmsUpload',
);
$wgMessagesDirs['MsUpload'] = __DIR__ . '/i18n';
$wgAutoloadClasses['MsUpload'] = __DIR__ . '/MsUpload.body.php';
$wgHooks['EditPage::showEditForm:initial'][] = 'MsUpload::start';
$wgHooks['FormEdit::showEditForm:initial'][] = 'MsUpload::start';
$wgHooks['sfRenderingEnd'][] = 'MsUpload::addToForm';
$wgAjaxExportList[] = 'MsUpload::saveCat';
// Default configuration
$wgMSU_useDragDrop = true;
$wgMSU_showAutoCat = true;
$wgMSU_checkAutoCat = true;
$wgMSU_useMsLinks = false;
$wgMSU_confirmReplace = true;
$wgMSU_imgParams = '400px';
$wgMSU_wrapperClass = '';
$wgMSU_secondaryWrapperClass = '';
$wgMSU_useDragDropAllContainer = true;