MediaWiki REL1_30
ConfirmEdit.php
Go to the documentation of this file.
1<?php
2
33if ( function_exists( 'wfLoadExtension' ) ) {
34 wfLoadExtension( 'ConfirmEdit' );
35 // Keep i18n globals so mergeMessageFileList.php doesn't break
36 $wgMessagesDirs['ConfirmEdit'] = __DIR__ . '/i18n';
37 $wgExtensionMessagesFiles['ConfirmEditAlias'] = __DIR__ . '/ConfirmEdit.alias.php';
38 wfWarn(
39 'Deprecated PHP entry point used for ConfirmEdit extension. ' .
40 'Please use wfLoadExtension instead, ' .
41 'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
42 );
43 return;
44} else {
45 die( 'This version of the ConfirmEdit extension requires MediaWiki 1.25+' );
46}
$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.
$wgExtensionMessagesFiles['ExtensionNameMagic']
Definition magicword.txt:43