Merge "Only run sha1_file once per file in FSFile"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 28 Feb 2013 18:04:20 +0000 (18:04 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 28 Feb 2013 18:04:20 +0000 (18:04 +0000)
includes/upload/UploadBase.php
includes/upload/UploadFromStash.php

index 3a37f11..49713fc 100644 (file)
@@ -239,7 +239,7 @@ abstract class UploadBase {
         * Get the base 36 SHA1 of the file
         * @return string
         */
-       protected function getTempFileSha1Base36() {
+       public function getTempFileSha1Base36() {
                return FSFile::getSha1Base36FromPath( $this->mTempPath );
        }
 
index 71ee96b..fd2416d 100644 (file)
@@ -133,7 +133,7 @@ class UploadFromStash extends UploadBase {
         * Get the base 36 SHA1 of the file
         * @return string
         */
-       protected function getTempFileSha1Base36() {
+       public function getTempFileSha1Base36() {
                return $this->mFileProps['sha1'];
        }