MediaWiki REL1_31
Gadgets.php
Go to the documentation of this file.
1<?php
2
3if ( function_exists( 'wfLoadExtension' ) ) {
4 wfLoadExtension( 'Gadgets' );
5 // Keep i18n globals so mergeMessageFileList.php doesn't break
6 $wgMessagesDirs['Gadgets'] = __DIR__ . '/i18n';
7 $wgExtensionMessagesFiles['GadgetsAlias'] = __DIR__ . '/Gadgets.alias.php';
8 $wgExtensionMessagesFiles['GadgetsNamespaces'] = __DIR__ . '/Gadgets.namespaces.php';
9 /* wfWarn(
10 'Deprecated PHP entry point used for Gadgets extension. 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 Gadgets extension requires MediaWiki 1.28+' );
16}
wfLoadExtension( $ext, $path=null)
Load an extension.
$wgMessagesDirs['ReplaceText']
$wgExtensionMessagesFiles['ExtensionNameMagic']
Definition magicword.txt:43