summaryrefslogtreecommitdiff
blob: 586c41b37c93498339a11dc429b8015ec4613d1f (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
 * @file
 * @ingroup Extensions
 * @link http://www.mediawiki.org/wiki/Extension:Pipe_Escape Documentation
 *
 * @author David M. Sledge
 * @modifier Purodha Blissenbach
 * @copyright Copyright © 2008 David M. Sledge
 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0
 *     or later
 * @version 0.1.0
 *     initial creation.
 * @version 0.1.1
 *     i18n support.
 * @version 2.0.0
 *     adaption to MediaWiki 1.26
 *
 * @todo
 *     allow alias names.
 */

if ( !defined( 'MEDIAWIKI' ) ) {
    die( 'This file is a MediaWiki extension, it is not a valid entry point.' );
}

$wgAutoloadClasses['ExtPipeEsc'] = __DIR__ . '/ExtPipeEsc.php';

$wgExtensionCredits[ 'parserhook' ][] = array(
	'path' => __FILE__,
	'name' => 'Pipe Escape',
	'namemsg' => 'pipeescape-extensionname',
	'author' => array(
		'David M. Sledge',
		'Purodha Blissenbach',
		),
	'version' => '2.0.0',
	'url' => 'https://www.mediawiki.org/wiki/Extension:Pipe_Escape',
	'descriptionmsg' => 'pipeescape-desc',
	'license-name' => 'GPL-2.0+',
);

$wgMessagesDirs['PipeEscape'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['PipeEscapeMagic'] = __DIR__ . '/PipeEscape.i18n.magic.php';

$wgHooks[ 'ParserFirstCallInit' ][] = 'ExtPipeEsc::setup';