Skip to content

Commit 69d1f85

Browse files
Add i18n globals to PHP entry point
Even though the PHP entry point is deprecated, some part of its structure is still required for the mergeMessageFileList.php maintenance script. Ensure that this structure is present here.
1 parent d9ff3bf commit 69d1f85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WikibaseImport.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
if ( function_exists( 'wfLoadExtension' ) ) {
44
wfLoadExtension( 'WikibaseImport', __DIR__ . '/extension.json' );
5+
// Keep i18n globals so mergeMessageFileList.php doesn't break
6+
$wgMessagesDirs['WikibaseImport'] = __DIR__ . '/i18n';
7+
$wgExtensionMessagesFiles['WikibaseImportAlias'] = __DIR__ . '/WikibaseImport.i18n.alias.php';
58
wfWarn(
69
'Deprecated PHP entry point used for WikibaseImport extension. ' .
710
'Please use wfLoadExtension instead, ' .

0 commit comments

Comments
 (0)