MediaWiki
REL1_30
TitleBlacklist.php
Go to the documentation of this file.
1
<?php
2
3
if
( function_exists(
'wfLoadExtension'
) ) {
7
define(
'TBLSRC_MSG'
,
'message'
);
8
define(
'TBLSRC_LOCALPAGE'
,
'localpage'
);
9
define(
'TBLSRC_URL'
,
'url'
);
10
define(
'TBLSRC_FILE'
,
'file'
);
11
12
wfLoadExtension
(
'TitleBlacklist'
);
13
// Keep i18n globals so mergeMessageFileList.php doesn't break
14
$wgMessagesDirs
[
'TitleBlacklist'
] = __DIR__ .
'/i18n'
;
15
wfWarn
(
16
'Deprecated PHP entry point used for TitleBlacklist extension. '
.
17
'Please use wfLoadExtension instead, '
.
18
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
19
);
20
return
;
21
}
else
{
22
die(
'This version of the TitleBlacklist extension requires MediaWiki 1.25+'
);
23
}
$wgMessagesDirs
$wgMessagesDirs
Extension messages directories.
Definition
DefaultSettings.php:7223
wfWarn
wfWarn( $msg, $callerOffset=1, $level=E_USER_NOTICE)
Send a warning either to the debug log or in a PHP error depending on $wgDevelopmentWarnings.
Definition
GlobalFunctions.php:1191
wfLoadExtension
wfLoadExtension( $ext, $path=null)
Load an extension.
Definition
GlobalFunctions.php:115
extensions
TitleBlacklist
TitleBlacklist.php
Generated on Mon Nov 25 2024 15:42:01 for MediaWiki by
1.10.0