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 "Allow mobile to reduce image quality"
[lhc/web/wiklou.git]
/
maintenance
/
populateImageSha1.php
diff --git
a/maintenance/populateImageSha1.php
b/maintenance/populateImageSha1.php
index
d7c26d5
..
e9123aa
100644
(file)
--- a/
maintenance/populateImageSha1.php
+++ b/
maintenance/populateImageSha1.php
@@
-82,7
+82,10
@@
class PopulateImageSha1 extends LoggedUpdateMaintenance {
}
$this->output( "Populating img_sha1 field for specified files\n" );
} else {
}
$this->output( "Populating img_sha1 field for specified files\n" );
} else {
- if ( $force ) {
+ if ( $this->hasOption( 'multiversiononly' ) ) {
+ $conds = array();
+ $this->output( "Populating and recalculating img_sha1 field for versioned files\n" );
+ } elseif ( $force ) {
$conds = array();
$this->output( "Populating and recalculating img_sha1 field\n" );
} else {
$conds = array();
$this->output( "Populating and recalculating img_sha1 field\n" );
} else {