summaryrefslogtreecommitdiffstats
path: root/system/helpers/download_helper.php
diff options
context:
space:
mode:
authorytetsuro <phper.0o0@gmail.com>2018-02-05 14:44:56 +0100
committerytetsuro <phper.0o0@gmail.com>2018-02-05 16:12:28 +0100
commita70cdc5a9ed9e181e9f76fdc94006f3cc20198cd (patch)
tree0a047bb4989d91f40d09c608e25befe2bf1e3388 /system/helpers/download_helper.php
parentc755a6b0b32b58c86989e5c6cfd8085732b1e497 (diff)
change use direct convert_to_utf8 method
Diffstat (limited to 'system/helpers/download_helper.php')
-rw-r--r--system/helpers/download_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php
index a169c3fd5..fdca76830 100644
--- a/system/helpers/download_helper.php
+++ b/system/helpers/download_helper.php
@@ -151,8 +151,8 @@ if ( ! function_exists('force_download'))
$encoding = config_item('charset');
if (strtoupper($encoding) !== 'UTF-8')
{
- $CI =& get_instance();
- if ($converted_filename = $CI->utf8->convert_to_utf8($utf8_filename, $encoding) )
+ $converted_filename = get_instance()->utf8->convert_to_utf8($utf8_filename, $encoding);
+ if ($converted_filename)
{
$utf8_filename = $converted_filename;
}