From bc01fd956b06fb20181c5ae1049f05f32c2c7865 Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Thu, 13 Oct 2022 23:15:00 +0600 Subject: [PATCH] pkp/pkp-lib#8326 Updated function signature to match with parent class (#60) --- classes/form/UploadImageForm.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/form/UploadImageForm.inc.php b/classes/form/UploadImageForm.inc.php index 7f9ae6e..b4048df 100644 --- a/classes/form/UploadImageForm.inc.php +++ b/classes/form/UploadImageForm.inc.php @@ -140,9 +140,10 @@ function deleteCoverImage($request) { /** * Save file image to Submission - * @param $request Request. + * @param mixed $functionArgs,... Arguments from the caller to be passed to the hook consumer */ - function execute($request) { + function execute(...$functionArgs) { + $request = Application::get()->getRequest(); $publicationDao = DAORegistry::getDAO('PublicationDAO'); /* @var $publicationDao PublicationDAO */ $temporaryFile = $this->fetchTemporaryFile($request);