Skip to content

Commit

Permalink
fixup! feat: mail provider settings
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Sep 19, 2024
1 parent cce92cc commit 2ab9354
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function schedule(Message $iTipMessage) {
$mailService = null;

try {
if ($this->config->getValueInt('core','mail_providers_disabled', 0) === 0) {
if ($this->config->getValueInt('core', 'mail_providers_disabled', 0) === 0) {
// retrieve user object
$user = $this->userSession->getUser();
// evaluate if user object exist
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ public function testMailProviderDisabled(): void {
->willReturn('yes');
$this->config->expects(self::once())
->method('getValueInt')
->with('core','mail_providers_disabled', 0)
->with('core', 'mail_providers_disabled', 0)
->willReturn(1);
$this->service->expects(self::once())
->method('createInvitationToken')
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/lib/Listener/SystemMailSettingsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function handleSetValue(DeclarativeSettingsSetValueEvent $event): void {

switch ($event->getFieldId()) {
case 'mail_providers_disabled':
$this->config->setValueInt('core', 'mail_providers_disabled', (int) $event->getValue());
$this->config->setValueInt('core', 'mail_providers_disabled', (int)$event->getValue());
$event->stopPropagation();
break;
}
Expand Down
7 changes: 4 additions & 3 deletions apps/settings/lib/Settings/Admin/SystemMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@

class SystemMail implements IDeclarativeSettingsForm {

public function __construct(
private IL10N $l
) {}
public function __construct(
private IL10N $l
) {
}

public function getSchema(): array {
return [
Expand Down

0 comments on commit 2ab9354

Please sign in to comment.