Codeigniter-Frontend-Language-Files-Editor icon indicating copy to clipboard operation
Codeigniter-Frontend-Language-Files-Editor copied to clipboard

controller/language.php -> lang_file() $lang error

Open tazotado7 opened this issue 5 months ago • 0 comments

A PHP Error was encountered Severity: Warning Message: Undefined variable $lang Filename: controllers/language.php Line Number: 64

if language file is is empty there is no $lang['key'] = 'value'; data then it throws this error

my solution :

require(APPPATH."language/$l/$file"); $lang = $lang ?? [];

tazotado7 avatar Aug 30 '24 18:08 tazotado7