dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a09fe4
)
FU r106752: updated populateImageSha1.php script as needed
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 12 Jan 2012 20:50:14 +0000
(20:50 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 12 Jan 2012 20:50:14 +0000
(20:50 +0000)
maintenance/populateImageSha1.php
patch
|
blob
|
history
diff --git
a/maintenance/populateImageSha1.php
b/maintenance/populateImageSha1.php
index
5222c2d
..
4cd2747
100644
(file)
--- a/
maintenance/populateImageSha1.php
+++ b/
maintenance/populateImageSha1.php
@@
-94,7
+94,7
@@
class PopulateImageSha1 extends LoggedUpdateMaintenance {
if ( !$file ) {
continue;
}
- $sha1 =
File::sha1Base36
( $file->getPath() );
+ $sha1 =
$file->getRepo()->getFileSha1
( $file->getPath() );
if ( strval( $sha1 ) !== '' ) {
$sql = "UPDATE $imageTable SET img_sha1=" . $dbw->addQuotes( $sha1 ) .
" WHERE img_name=" . $dbw->addQuotes( $row->img_name );