Skip to content

Commit

Permalink
pkp#10934 Fixed argument position
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Feb 14, 2025
1 parent ac1111a commit 90d303c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class PKPAnnouncementForm extends FormComponent
* @param string $temporaryFileApiUrl URL to upload files to
* @param string $imageUploadUrl The API endpoint for images uploaded through the rich text field
*/
public function __construct($action, $locales, string $baseUrl, string $temporaryFileApiUrl, ?Context $context = null, string $imageUploadUrl)
public function __construct($action, $locales, string $baseUrl, string $temporaryFileApiUrl, string $imageUploadUrl, ?Context $context = null)
{
$this->action = $action;
$this->locales = $locales;
Expand Down
3 changes: 2 additions & 1 deletion pages/management/ManagementHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ public function announcements($args, $request)
$locales,
Repo::announcement()->getFileUploadBaseUrl($context),
$this->getTemporaryFileApiUrl($context),
$request->getContext(), $publicFileApiUrl
$publicFileApiUrl,
$context
);

$collector = Repo::announcement()
Expand Down

0 comments on commit 90d303c

Please sign in to comment.