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