Make UploadBase::getTempFileSha1Base36 public
authorMarius Hoch <hoo@online.de>
Thu, 28 Feb 2013 00:40:26 +0000 (01:40 +0100)
committerMarius Hoch <hoo@online.de>
Thu, 28 Feb 2013 01:42:56 +0000 (02:42 +0100)
There's no obvious reason for this method to be private while
it's pretty handy to have it in hooks.

Change-Id: If716665a939e8fe84288354ee8c16369604b67fb

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'];
        }