From b3683bbd40c4443ead508a5631deb18624470e01 Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Thu, 28 Feb 2013 01:40:26 +0100 Subject: [PATCH] Make UploadBase::getTempFileSha1Base36 public 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 | 2 +- includes/upload/UploadFromStash.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 3a37f11c92..49713fc973 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -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 ); } diff --git a/includes/upload/UploadFromStash.php b/includes/upload/UploadFromStash.php index 71ee96b817..fd2416d117 100644 --- a/includes/upload/UploadFromStash.php +++ b/includes/upload/UploadFromStash.php @@ -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']; } -- 2.20.1