mediawiki-extensions-Syntax.../SyntaxHighlight_GeSHi.php
Kunal Mehta b4853c7633 Revert "Revert "Add extension.json, empty PHP entry point""
Try #2. Our last attempt loaded $wgGeSHiSupportedLanguages late, and
would override anything if it was already set. We still load it late, but
only if it is not already set.

This reverts commit 033ca20746.

Bug: T88063
Change-Id: Iae0806e06a95b2d8932b3d9e078e6135dd6750a3
2015-05-20 14:36:46 -07:00

14 lines
543 B
PHP

<?php
if ( function_exists( 'wfLoadExtension' ) ) {
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['SyntaxHighlight_GeSHi'] = __DIR__ . '/i18n';
/* wfWarn(
'Deprecated PHP entry point used for SyntaxHighlight_GeSHi extension. Please use wfLoadExtension instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
return;
} else {
die( 'This version of the SyntaxHighlight_GeSHi extension requires MediaWiki 1.25+' );
}