From 49dbdceeee932dc5a6f2a397a84e37d1adc16011 Mon Sep 17 00:00:00 2001 From: mitagmio Date: Thu, 8 Feb 2018 13:19:10 +0300 Subject: [PATCH] Update Loader.php A PHP Error was encountered Severity: Warning Message: Declaration of MX_Loader::language($langfile, $lang = '', $return = false) should be compatible with CI_Loader::language($file = Array, $lang = '') Filename: MX/Loader.php Line Number: 0 --- application/third_party/MX/Loader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/third_party/MX/Loader.php b/application/third_party/MX/Loader.php index 8f4435b..d97f8d3 100644 --- a/application/third_party/MX/Loader.php +++ b/application/third_party/MX/Loader.php @@ -119,7 +119,7 @@ public function helpers($helpers) { } /** Load a module language file **/ - public function language($langfile, $idiom = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '') { + public function language($langfile=array(), $idiom = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '') { return CI::$APP->lang->load($langfile, $idiom, $return, $add_suffix, $alt_path, $this->_module); } @@ -379,4 +379,4 @@ public function _autoloader($autoload) { } /** load the CI class for Modular Separation **/ -(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php'; \ No newline at end of file +(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';