FU r106752: fixed call to bogus function in LocalFile::getSha1()
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 24 Dec 2011 00:19:01 +0000 (00:19 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 24 Dec 2011 00:19:01 +0000 (00:19 +0000)
includes/filerepo/file/LocalFile.php

index 3a223ae..d0d5659 100644 (file)
@@ -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',