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
Update OOUI to v0.31.0
[lhc/web/wiklou.git]
/
maintenance
/
refreshImageMetadata.php
diff --git
a/maintenance/refreshImageMetadata.php
b/maintenance/refreshImageMetadata.php
index
f6c0673
..
65db94d
100644
(file)
--- a/
maintenance/refreshImageMetadata.php
+++ b/
maintenance/refreshImageMetadata.php
@@
-108,7
+108,7
@@
class RefreshImageMetadata extends Maintenance {
$dbw = $this->getDB( DB_MASTER );
$batchSize = $this->getBatchSize();
if ( $batchSize <= 0 ) {
$dbw = $this->getDB( DB_MASTER );
$batchSize = $this->getBatchSize();
if ( $batchSize <= 0 ) {
- $this->
e
rror( "Batch size is too low...", 12 );
+ $this->
fatalE
rror( "Batch size is too low...", 12 );
}
$repo = RepoGroup::singleton()->getLocalRepo();
}
$repo = RepoGroup::singleton()->getLocalRepo();
@@
-255,10
+255,10
@@
class RefreshImageMetadata extends Maintenance {
}
if ( $brokenOnly && $force ) {
}
if ( $brokenOnly && $force ) {
- $this->
e
rror( 'Cannot use --broken-only and --force together. ', 2 );
+ $this->
fatalE
rror( 'Cannot use --broken-only and --force together. ', 2 );
}
}
}
}
}
}
-$maintClass =
'RefreshImageMetadata'
;
+$maintClass =
RefreshImageMetadata::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;