Index: trunk/phase3/includes/filerepo/file/LocalFile.php |
— | — | @@ -1371,7 +1371,7 @@ |
1372 | 1372 | // Initialise now if necessary |
1373 | 1373 | if ( $this->sha1 == '' && $this->fileExists ) { |
1374 | 1374 | $tmpPath = $this->getLocalRefPath(); |
1375 | | - $this->sha1 = FSFile::sha1Base36( $tmpPath ); |
| 1375 | + $this->sha1 = FSFile::getSha1Base36FromPath( $tmpPath ); |
1376 | 1376 | if ( !wfReadOnly() && strval( $this->sha1 ) != '' ) { |
1377 | 1377 | $dbw = $this->repo->getMasterDB(); |
1378 | 1378 | $dbw->update( 'image', |