mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Description2
synced 2024-11-27 16:10:05 +00:00
444f123a4a
* Old i18n shim removed * extension.json added * PHP code moved into the new Description2 class * Old PHP entry point still exists for b/c with older installations, but MW 1.25 or newer is now required Change-Id: I0670c203b62dcf500ded1b82957e473edf864fb1
25 lines
911 B
PHP
25 lines
911 B
PHP
<?php
|
||
/**
|
||
* Description2 – Adds meaningful description <meta> tag to MW pages and into the parser output
|
||
*
|
||
* @file
|
||
* @ingroup Extensions
|
||
* @author Daniel Friesen (http://danf.ca/mw/)
|
||
* @copyright Copyright 2010 – Daniel Friesen
|
||
* @license https://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
|
||
* @link https://www.mediawiki.org/wiki/Extension:Description2 Documentation
|
||
*/
|
||
|
||
if ( function_exists( 'wfLoadExtension' ) ) {
|
||
wfLoadExtension( 'Description2' );
|
||
// Keep i18n globals so mergeMessageFileList.php doesn't break
|
||
$wgMessagesDirs['Description2'] = __DIR__ . '/i18n';
|
||
wfWarn(
|
||
'Deprecated PHP entry point used for Description2 extension. ' .
|
||
'Please use wfLoadExtension instead, ' .
|
||
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
||
);
|
||
return;
|
||
} else {
|
||
die( 'This version of the Description2 extension requires MediaWiki 1.25+' );
|
||
} |