diff options
author | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
commit | fc7369835258467bf97eb64f184b93691f9a9fd5 (patch) | |
tree | daabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/Description2/Description2.php |
first commit
Diffstat (limited to 'www/wiki/extensions/Description2/Description2.php')
-rw-r--r-- | www/wiki/extensions/Description2/Description2.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/www/wiki/extensions/Description2/Description2.php b/www/wiki/extensions/Description2/Description2.php new file mode 100644 index 00000000..35fb4d4b --- /dev/null +++ b/www/wiki/extensions/Description2/Description2.php @@ -0,0 +1,25 @@ +<?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+' ); +}
\ No newline at end of file |