From 676224db5c54e7210dc13608253068340fd8579e Mon Sep 17 00:00:00 2001 From: jhyeon1010 Date: Thu, 6 Dec 2018 15:40:31 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A4=EA=B5=AD=EC=96=B4=20=EC=BA=90?= =?UTF-8?q?=EC=8B=9C=20=EB=B0=B0=EC=97=B4=20=EC=B2=98=EB=A6=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/Xpressengine/Translation/TransCache.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/Xpressengine/Translation/TransCache.php b/core/src/Xpressengine/Translation/TransCache.php index 7e624e9f71..2bb2749266 100644 --- a/core/src/Xpressengine/Translation/TransCache.php +++ b/core/src/Xpressengine/Translation/TransCache.php @@ -136,8 +136,7 @@ private function load() $this->cachedLines = []; $this->repo->chunk(function ($lines) { foreach ($lines as $line) { - $keys = [$line->namespace, $line->item, $line->locale]; - Arr::set($this->cachedLines, implode('.', $keys), $line->value); + $this->cachedLines[$line->namespace][$line->item][$line->locale] = $line->value; } }); $this->cache->forever($this->transCacheKey, json_enc($this->cachedLines));