Skip to content

Commit

Permalink
Fix missing constructor parameters
Browse files Browse the repository at this point in the history
Also tweaks the updateversion of the sql script, not that it really
matters much.
  • Loading branch information
stwalkerster committed Aug 8, 2022
1 parent 3a15206 commit 138166e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions includes/Pages/PageRequestFormManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ protected function view()
$form = RequestForm::getById(WebRequest::getInt('form'), $database);

if ($form->getDomain() !== Domain::getCurrent($database)->getId()) {
throw new AccessDeniedException();
throw new AccessDeniedException($this->getSecurityManager(), $this->getDomainAccessManager());
}

$this->populateFromObject($form);
Expand Down Expand Up @@ -192,7 +192,7 @@ protected function edit()
$form = RequestForm::getById(WebRequest::getInt('form'), $database);

if ($form->getDomain() !== Domain::getCurrent($database)->getId()) {
throw new AccessDeniedException();
throw new AccessDeniedException($this->getSecurityManager(), $this->getDomainAccessManager());
}

if (WebRequest::wasPosted()) {
Expand Down
2 changes: 1 addition & 1 deletion sql/patches/patch41-requestform-usage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CREATE PROCEDURE SCHEMA_UPGRADE_SCRIPT() BEGIN
add emailhelp text not null,
add commentshelp text not null;

INSERT INTO requestform (updateversion, enabled, domain, name, publicendpoint, formcontent, overridequeue, usernamehelp, emailhelp, commentshelp) VALUES (9, 1, 1, 'Default form', 'default', '## Request an account!
INSERT INTO requestform (updateversion, enabled, domain, name, publicendpoint, formcontent, overridequeue, usernamehelp, emailhelp, commentshelp) VALUES (0, 1, 1, 'Default form', 'default', '## Request an account!
We will need a few bits of information in order to create your account. However, please keep in mind that you do not need an account to read the encyclopedia or look up information - that can be done by anyone with or without an account. The first thing we need is a username, and secondly, a **valid email address that we can send your password to** (please don''t use temporary inboxes, or email aliasing, as this may cause your request to be rejected). If you want to leave any comments, feel free to do so in the comments field below. Note that if you use this form, your IP address will be recorded, and displayed to [those who review account requests](https://accounts.wmflabs.org/internal.php/statistics/users). When you are done, click the "Submit" button.
Expand Down

0 comments on commit 138166e

Please sign in to comment.