From 73a3f662b42b06a72499ca154ec8712f9b2b58b8 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 26 Oct 2018 20:51:49 +0200 Subject: [PATCH] Start showing warning for deprecated PHP entry point Change-Id: I7c37e6eb6b7c802fa1e4ebaca2752247ba4d3b8c --- Math.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Math.php b/Math.php index 0cdb14f..5ab0023 100644 --- a/Math.php +++ b/Math.php @@ -5,11 +5,11 @@ if ( function_exists( 'wfLoadExtension' ) ) { $wgMessagesDirs['Math'] = __DIR__ . '/i18n'; $wgExtensionMessagesFiles['Math'] = __DIR__ . '/Math.alias.php'; $wgExtensionMessagesFiles['MathAliasNoTranslate'] = __DIR__ . '/Math.alias.noTranslate.php'; - /* wfWarn( + wfWarn( 'Deprecated PHP entry point used for Math extension. Please use wfLoadExtension instead, ' . 'see https://www.mediawiki.org/wiki/Extension_registration for more details.' - );*/ + ); return; } else { - die( 'This version of the Math extension requires MediaWiki 1.25+' ); + die( 'This version of the Math extension requires MediaWiki 1.32+' ); }