summaryrefslogtreecommitdiffstats
path: root/system/helpers/typography_helper.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-08-30 00:32:16 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-08-30 00:32:16 +0200
commitd7a28663344fbb760134b5623b8cb441f4875f80 (patch)
tree388d65d299613c9cd93f5de11fb413be71143cb6 /system/helpers/typography_helper.php
parent70e61b5dc0b240c4a3341ca65ad9f2f5254df1b5 (diff)
parent5c9b0d1b5618ade5c6aa70475b08b3066f14ff3e (diff)
Merge pull request #325 from freewil/develop
always use charset config item
Diffstat (limited to 'system/helpers/typography_helper.php')
-rw-r--r--system/helpers/typography_helper.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/system/helpers/typography_helper.php b/system/helpers/typography_helper.php
index 19b4eec03..82e686e53 100644
--- a/system/helpers/typography_helper.php
+++ b/system/helpers/typography_helper.php
@@ -39,9 +39,7 @@ if ( ! function_exists('nl2br_except_pre'))
function nl2br_except_pre($str)
{
$CI =& get_instance();
-
$CI->load->library('typography');
-
return $CI->typography->nl2br_except_pre($str);
}
}
@@ -82,9 +80,15 @@ if ( ! function_exists('auto_typography'))
*/
if ( ! function_exists('entity_decode'))
{
- function entity_decode($str, $charset='UTF-8')
+ function entity_decode($str, $charset = NULL)
{
global $SEC;
+
+ if (empty($charset))
+ {
+ $charset = config_item('charset');
+ }
+
return $SEC->entity_decode($str, $charset);
}
}