From dee28a67f4de72d527bb0257e7f868cb685b68b5 Mon Sep 17 00:00:00 2001 From: Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram Date: Sun, 25 Sep 2022 13:05:49 +0400 Subject: [PATCH] Fix Edition instantiation for language --- api/Controllers/v1/Edition.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/Controllers/v1/Edition.php b/api/Controllers/v1/Edition.php index 575413c..d06abd2 100644 --- a/api/Controllers/v1/Edition.php +++ b/api/Controllers/v1/Edition.php @@ -137,7 +137,7 @@ public function getByLanguage(ServerRequestInterface $request, ResponseInterface $result = $this->mc->get(md5('edition_' . $lang), function (ItemInterface $item) use ($lang) { $item->expiresAfter(604800); - $e = new EditionResponse($this->em,null, null, null, $lang); + $e = new EditionResponse($this->em,null, null, $lang); return [ $e->get(),