From b9efeb2cbc9e6558e2a49a8efb47a7b91526de4d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 24 Dec 2011 00:19:01 +0000 Subject: [PATCH] FU r106752: fixed call to bogus function in LocalFile::getSha1() --- includes/filerepo/file/LocalFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 3a223ae8ea..d0d5659d6d 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -1371,7 +1371,7 @@ class LocalFile extends File { // Initialise now if necessary if ( $this->sha1 == '' && $this->fileExists ) { $tmpPath = $this->getLocalRefPath(); - $this->sha1 = FSFile::sha1Base36( $tmpPath ); + $this->sha1 = FSFile::getSha1Base36FromPath( $tmpPath ); if ( !wfReadOnly() && strval( $this->sha1 ) != '' ) { $dbw = $this->repo->getMasterDB(); $dbw->update( 'image', -- 2.20.1