From 9f1250afa243e203f313bb985061291934ebaeb8 Mon Sep 17 00:00:00 2001 From: sysadminstory Date: Mon, 24 Jan 2022 00:40:57 +0100 Subject: [PATCH] Fix the settings controller parameters The Settings controller parameters were did not have a type, and prevented them from being automatically injected --- lib/Controller/SettingsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php index acf3520..7b26a34 100644 --- a/lib/Controller/SettingsController.php +++ b/lib/Controller/SettingsController.php @@ -51,7 +51,7 @@ class SettingsController extends Controller { * * @return array|\OCP\AppFramework\Http\JSONResponse */ - public function setPreference($EpubEnable, $PdfEnable, $CbxEnable) { + public function setPreference(string $EpubEnable, string $PdfEnable, string $CbxEnable) { $l = \OC::$server->getL10N('epubreader');