blob: 523dee7f9f74d971b80f98d5465218c76a2c7be4 (
plain)
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
|
<?php
/**
* EmbedVideo
* EmbedVideo Services List
* Adds a parser function embedding video from popular sources.
* See README for details. For licensing information, see LICENSE. For a
* complete list of contributors, see CREDITS
*
* @license MIT
* @package EmbedVideo
* @link https://www.mediawiki.org/wiki/Extension:EmbedVideo
*
**/
if ( function_exists( 'wfLoadExtension' ) ) {
wfLoadExtension( 'EmbedVideo' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['EmbedVideo'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['EmbedVideoMagic'] = __DIR__ . '/EmbedVideo.i18n.magic.php';
wfWarn(
'Deprecated PHP entry point used for EmbedVideo extension. Please use wfLoadExtension instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
);
return;
} else {
die( 'This version of the EmbedVideo extension requires MediaWiki 1.25+' );
}
|