mediawiki-extensions-Descri.../Description2.php
libraryupgrader 06229d23c4 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.LicenseComment.InvalidLicenseTag

Change-Id: I6d9d49895a44890710017d55401618735f43337e
2018-04-14 00:16:14 +00:00

26 lines
851 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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 GPL-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+' );
}