From 46f7962e02725960c93eaaf1cbcb63e474551496 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Wed, 28 Aug 2019 17:16:11 +0200 Subject: [PATCH] Fix url helper to work also in console applications. (#1416) (cherry picked from commit 4c266e1254742d1142d20d44c1e16cb5a6a7450c) --- module/VuFind/src/VuFind/View/Helper/Root/Url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Url.php b/module/VuFind/src/VuFind/View/Helper/Root/Url.php index 12f8b45efaa..97377be49ee 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/Url.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/Url.php @@ -52,7 +52,7 @@ class Url extends \Laminas\View\Helper\Url * * @param Request $request Request object for GET parameters */ - public function __construct(Request $request) + public function __construct(Request $request = null) { $this->request = $request; } -- GitLab