X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportTextFiles.php;h=816e745281d846c091b76c358219e234204a45ae;hb=e39699f90f696dc589878cd6038a3de97b70ca89;hp=2894653eb4dc19810b5e1f08ad159521cad826bf;hpb=5335a84c9ef221d03f264834cf136d9dd11a749a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importTextFiles.php b/maintenance/importTextFiles.php index 2894653eb4..816e745281 100644 --- a/maintenance/importTextFiles.php +++ b/maintenance/importTextFiles.php @@ -21,6 +21,8 @@ * @ingroup Maintenance */ +use MediaWiki\MediaWikiServices; + require_once __DIR__ . '/Maintenance.php'; /** @@ -129,7 +131,7 @@ class ImportTextFiles extends Maintenance { } } - $rev = new WikiRevision( ConfigFactory::getDefaultInstance()->makeConfig( 'main' ) ); + $rev = new WikiRevision( MediaWikiServices::getInstance()->getMainConfig() ); $rev->setText( rtrim( $text ) ); $rev->setTitle( $title ); $rev->setUserObj( $user );