From 09e70be4a18390c01bd29c1590f8f1bc500ed229 Mon Sep 17 00:00:00 2001 From: Sunil Vaishnav Date: Mon, 21 Oct 2019 15:58:00 +0530 Subject: [PATCH] replaced language setting in APPPATH."Language" --- system/Language/Language.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system/Language/Language.php b/system/Language/Language.php index 1abe60ded8c7..bbc77a69c9d7 100644 --- a/system/Language/Language.php +++ b/system/Language/Language.php @@ -323,6 +323,12 @@ protected function requireFile(string $path): array $strings = $strings[0]; } + # Replace with files in APPPATH.'Language' directory + if( $file = Services::locator()->locateFile($path) ) + { + $strings = array_replace($strings, require $file); + } + return $strings; }