summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}