-
Notifications
You must be signed in to change notification settings - Fork 0
/
RtvVideoUpload.php
39 lines (33 loc) · 1.08 KB
/
RtvVideoUpload.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
<?php
# Gestartet am 10. Februar 2016 von Sven als Beispiel fuer eine Extension
if(!defined('MEDIAWIKI')) {
echo 'This extension is supposed to be run throught MediaWiki';
exit(1);
}
$wgExtensionCredits['validextensionclass'][] = array(
'path' => __FILE__,
'name' => 'RtvVideoUpload',
'author' => 'Sven K, Philip A',
'url' => 'https://riedberg.tv/wiki/RiedbergTV:Extension',
'description' => 'Dies ist unsere eigene RiedbergTV Extension zum Hochladen und Konvertieren fertiger Videos.',
'type' => 'specialpage',
'version' => 0.1,
'license-name' => 'GPL-2.0+'
);
$wgResourceModules['ext.RtvVideoUpload'] = array(
'styles' => array(
'RtvVideoUpload.css' => array( 'media' => 'all' ),
),
'scripts' => array(
'resumable.js',
'RtvVideoUpload.js',
),
'dependencies' => array(
'jquery',
),
'localBasePath' => __DIR__,
'remoteExtPath' => 'RtvVideoUpload',
);
$wgAutoloadClasses['SpecialVideoUpload'] = __DIR__ . '/SpecialVideoUpload.php';
$wgMessagesDirs['RtvVideoUpload'] = __DIR__ .'/i18n';
$wgSpecialPages['VideoUpload'] = 'SpecialVideoUpload';