MediaWiki REL1_30
TitleBlacklist.php
Go to the documentation of this file.
1<?php
2
3if ( 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
Extension messages directories.
wfWarn( $msg, $callerOffset=1, $level=E_USER_NOTICE)
Send a warning either to the debug log or in a PHP error depending on $wgDevelopmentWarnings.
wfLoadExtension( $ext, $path=null)
Load an extension.