diff --git a/htdocs/application/helpers/language_helper.php b/htdocs/application/helpers/language_helper.php new file mode 100644 index 0000000..567a41a --- /dev/null +++ b/htdocs/application/helpers/language_helper.php @@ -0,0 +1,58 @@ +lang->line($index); + + if ($id != '') + { + $line = '"; + } + + return ($line != '' ? $line : '[' . $index . ']'); + } +} + +// ------------------------------------------------------------------------ +/* End of file language_helper.php */ +/* Location: ./system/helpers/language_helper.php */ diff --git a/htdocs/system/helpers/language_helper.php b/htdocs/system/helpers/language_helper.php index 567a41a..ac0d69d 100644 --- a/htdocs/system/helpers/language_helper.php +++ b/htdocs/system/helpers/language_helper.php @@ -39,20 +39,20 @@ */ if ( ! function_exists('lang')) { - function lang($index, $id = '') + function lang($line, $id = '') { $CI =& get_instance(); - $line = $CI->lang->line($index); + $line = $CI->lang->line($line); if ($id != '') { $line = '"; } - return ($line != '' ? $line : '[' . $index . ']'); + return $line; } } // ------------------------------------------------------------------------ /* End of file language_helper.php */ -/* Location: ./system/helpers/language_helper.php */ +/* Location: ./system/helpers/language_helper.php */ \ No newline at end of file