MediaWiki
REL1_31
ParserFunctions.php
Go to the documentation of this file.
1
<?php
2
3
if
( function_exists(
'wfLoadExtension'
) ) {
4
wfLoadExtension
(
'ParserFunctions'
);
5
// Keep i18n globals so mergeMessageFileList.php doesn't break
6
$wgMessagesDirs
[
'ParserFunctions'
] = __DIR__ .
'/i18n'
;
7
$wgExtensionMessagesFiles
[
'ParserFunctionsMagic'
] = __DIR__ .
'/ParserFunctions.i18n.magic.php'
;
8
/* wfWarn(
9
'Deprecated PHP entry point used for ParserFunctions extension. ' .
10
'Please use wfLoadExtension instead, ' .
11
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
12
); */
13
return
true
;
14
}
else
{
15
die(
'This version of the ParserFunctions extension requires MediaWiki 1.25+'
);
16
}
wfLoadExtension
wfLoadExtension( $ext, $path=null)
Load an extension.
Definition
GlobalFunctions.php:45
$wgMessagesDirs
$wgMessagesDirs['ReplaceText']
Definition
ReplaceText.php:50
$wgExtensionMessagesFiles
$wgExtensionMessagesFiles['ExtensionNameMagic']
Definition
magicword.txt:43
extensions
ParserFunctions
ParserFunctions.php
Generated on Mon Nov 25 2024 15:34:21 for MediaWiki by
1.10.0