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
docs: Remove GENERATE_MAN support from Doxyfile
[lhc/web/wiklou.git]
/
maintenance
/
migrateArchiveText.php
diff --git
a/maintenance/migrateArchiveText.php
b/maintenance/migrateArchiveText.php
index
b2b14cb
..
2271c39
100644
(file)
--- a/
maintenance/migrateArchiveText.php
+++ b/
maintenance/migrateArchiveText.php
@@
-55,9
+55,8
@@
class MigrateArchiveText extends LoggedUpdateMaintenance {
}
protected function doDBUpdates() {
}
protected function doDBUpdates() {
- global $wgDefaultExternalStore;
-
$replaceMissing = $this->hasOption( 'replace-missing' );
$replaceMissing = $this->hasOption( 'replace-missing' );
+ $defaultExternalStore = $this->getConfig()->get( 'DefaultExternalStore' );
$batchSize = $this->getBatchSize();
$dbr = $this->getDB( DB_REPLICA, [ 'vslow' ] );
$batchSize = $this->getBatchSize();
$dbr = $this->getDB( DB_REPLICA, [ 'vslow' ] );
@@
-96,11
+95,8
@@
class MigrateArchiveText extends LoggedUpdateMaintenance {
if ( $data !== false ) {
$flags = Revision::compressRevisionText( $data );
if ( $data !== false ) {
$flags = Revision::compressRevisionText( $data );
- if ( $
wgD
efaultExternalStore ) {
+ if ( $
d
efaultExternalStore ) {
$data = ExternalStore::insertToDefault( $data );
$data = ExternalStore::insertToDefault( $data );
- if ( !$data ) {
- throw new MWException( "Unable to store text to external storage" );
- }
if ( $flags ) {
$flags .= ',';
}
if ( $flags ) {
$flags .= ',';
}