Start showing warning for deprecated PHP entry point

Change-Id: I375f5676f90a92b543a22296394f182d63d13e12
This commit is contained in:
Fomafix 2018-08-24 18:39:50 +02:00
parent 23d4fdfb18
commit 05d0874142

View file

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