From: Marius Hoch Date: Thu, 28 Feb 2013 00:40:26 +0000 (+0100) Subject: Make UploadBase::getTempFileSha1Base36 public X-Git-Tag: 1.31.0-rc.0~20537 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/?a=commitdiff_plain;h=b3683bbd40c4443ead508a5631deb18624470e01;p=lhc%2Fweb%2Fwiklou.git 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 --- 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']; }