forked from WikiToLearn/CollaborativeEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTogetherJS.php
40 lines (34 loc) · 857 Bytes
/
TogetherJS.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
<?php
$moduleInfo = array(
'localBasePath' => __DIR__,
'remoteExtPath' => 'TogetherJS',
);
$wgExtensionMessagesFiles['TogetherJS'] = __DIR__ . '/TogetherJS.i18n.php';
$wgResourceModules['togetherjs'] = array_merge( array(
'scripts' => array(
'js/ext.togetherjs.config.js',
'js/togetherjs.js',
),
'dependencies' => array(
'mediawiki.user',
),
'messages' => array(
'togetherjs-name',
),
), $moduleInfo );
$wgResourceModules['ext.togetherjs'] = array_merge( array(
'scripts' => array(
'js/ext.togetherjs.js',
'js/ext.togetherjs.ve.js',
),
'dependencies' => array(
'togetherjs',
),
'messages' => array(
'togetherjs-name',
'togetherjs-start',
'togetherjs-tab',
),
), $moduleInfo );
$wgAutoloadClasses['TogetherJSHooks'] = __DIR__ . '/TogetherJS.hooks.php';
$wgHooks['BeforePageDisplay'][] = 'TogetherJSHooks::getModules';