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