summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriel T. Glenn <ariel@wikimedia.org>2022-01-12 08:05:53 +0200
committerArielGlenn <ariel@wikimedia.org>2022-01-12 15:05:58 +0000
commit7ba095ffa6eceb0b82e03c082932879c16fb9bcd (patch)
tree97fe640dee757a3a6a0a6b2db898c366aefbfac0
parentea3fc11012e566e9e66105938863faa3052cab23 (diff)
Partial revert of I1a691f01cd82e60bf41207d32501edb4b9835e37 to unbreak dumps
Bug: T299020 Change-Id: I32fc4b0240efb2845bf064d07942fdbc9fe94342 (cherry picked from commit ca741848dfc65027536bd43ed362aeb9cc3c90e9)
-rw-r--r--includes/export/WikiExporter.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/export/WikiExporter.php b/includes/export/WikiExporter.php
index 9f3806dd0d6b..14b0417b117c 100644
--- a/includes/export/WikiExporter.php
+++ b/includes/export/WikiExporter.php
@@ -29,7 +29,6 @@
use MediaWiki\HookContainer\HookContainer;
use MediaWiki\HookContainer\HookRunner;
-use MediaWiki\MediaWikiServices;
use MediaWiki\Page\PageIdentity;
use MediaWiki\Revision\RevisionAccessException;
use MediaWiki\Revision\RevisionRecord;
@@ -96,8 +95,8 @@ class WikiExporter {
* @return string
*/
public static function schemaVersion() {
- $xmlDumpSchemaVersion = MediaWikiServices::getInstance()->getMainConfig()->get( 'XmlDumpSchemaVersion' );
- return $xmlDumpSchemaVersion;
+ global $wgXmlDumpSchemaVersion;
+ return $wgXmlDumpSchemaVersion;
}
/**