diff options
author | ytetsuro <phper.0o0@gmail.com> | 2018-02-05 15:05:50 +0100 |
---|---|---|
committer | ytetsuro <phper.0o0@gmail.com> | 2018-02-05 16:12:28 +0100 |
commit | 4dc34279cdc19b7a1df3385b1f679aeac6767c89 (patch) | |
tree | 2724dce86f90c14c14cbe6ee17cd9c701849b94c /system/helpers/download_helper.php | |
parent | e5d719d822646a7c0bcd1a2732eb8fe19357444a (diff) |
change variable name
Diffstat (limited to 'system/helpers/download_helper.php')
-rw-r--r-- | system/helpers/download_helper.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php index 344fd4e9a..afdb77956 100644 --- a/system/helpers/download_helper.php +++ b/system/helpers/download_helper.php @@ -148,10 +148,10 @@ if ( ! function_exists('force_download')) } $utf8_filename = $filename; - $encoding = config_item('charset'); - if (strtoupper($encoding) !== 'UTF-8') + $charset = config_item('charset'); + if (strtoupper($charset) !== 'UTF-8') { - $converted_filename = get_instance()->utf8->convert_to_utf8($utf8_filename, $encoding); + $converted_filename = get_instance()->utf8->convert_to_utf8($utf8_filename, $charset); if ($converted_filename !== FALSE) { $utf8_filename = $converted_filename; |