dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "RCFilters UI: Prevent label from stealing focus on click"
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
checkStorage.php
diff --git
a/maintenance/storage/checkStorage.php
b/maintenance/storage/checkStorage.php
index
bb9f4ea
..
9045870
100644
(file)
--- a/
maintenance/storage/checkStorage.php
+++ b/
maintenance/storage/checkStorage.php
@@
-21,6
+21,8
@@
* @ingroup Maintenance ExternalStorage
*/
* @ingroup Maintenance ExternalStorage
*/
+use MediaWiki\MediaWikiServices;
+
if ( !defined( 'MEDIAWIKI' ) ) {
$optionsWithoutArgs = [ 'fix' ];
require_once __DIR__ . '/../commandLine.inc';
if ( !defined( 'MEDIAWIKI' ) ) {
$optionsWithoutArgs = [ 'fix' ];
require_once __DIR__ . '/../commandLine.inc';
@@
-470,7
+472,7
@@
class CheckStorage {
$source = new ImportStreamSource( $file );
$importer = new WikiImporter(
$source,
$source = new ImportStreamSource( $file );
$importer = new WikiImporter(
$source,
-
ConfigFactory::getDefaultInstance()->makeConfig( 'main'
)
+
MediaWikiServices::getInstance()->getMainConfig(
)
);
$importer->setRevisionCallback( [ $this, 'importRevision' ] );
$importer->doImport();
);
$importer->setRevisionCallback( [ $this, 'importRevision' ] );
$importer->doImport();