forked from Wikia/EmbedVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmbedVideo.php
26 lines (25 loc) · 914 Bytes
/
EmbedVideo.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
<?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+');
}