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 "Use autoloader for PHP data files instead of include/require"
[lhc/web/wiklou.git]
/
maintenance
/
refreshImageMetadata.php
diff --git
a/maintenance/refreshImageMetadata.php
b/maintenance/refreshImageMetadata.php
index
8cb23fd
..
01fb15e
100644
(file)
--- a/
maintenance/refreshImageMetadata.php
+++ b/
maintenance/refreshImageMetadata.php
@@
-44,7
+44,7
@@
class RefreshImageMetadata extends Maintenance {
function __construct() {
parent::__construct();
function __construct() {
parent::__construct();
- $this->
mDescription = 'Script to update image metadata records'
;
+ $this->
addDescription( 'Script to update image metadata records' )
;
$this->setBatchSize( 200 );
$this->addOption(
$this->setBatchSize( 200 );
$this->addOption(
@@
-70,7
+70,7
@@
class RefreshImageMetadata extends Maintenance {
$this->addOption(
'mime',
$this->addOption(
'mime',
- '(Inefficient!) Only refresh files with this
mime
type. Can accept wild-card image/*',
+ '(Inefficient!) Only refresh files with this
MIME
type. Can accept wild-card image/*',
false,
true
);
false,
true
);
@@
-95,7
+95,7
@@
class RefreshImageMetadata extends Maintenance {
$leftAlone = 0;
$error = 0;
$leftAlone = 0;
$error = 0;
- $dbw =
wfG
etDB( DB_MASTER );
+ $dbw =
$this->g
etDB( DB_MASTER );
if ( $this->mBatchSize <= 0 ) {
$this->error( "Batch size is too low...", 12 );
}
if ( $this->mBatchSize <= 0 ) {
$this->error( "Batch size is too low...", 12 );
}