summaryrefslogtreecommitdiffstats
path: root/system/helpers/typography_helper.php
diff options
context:
space:
mode:
authorpurandi <free6300@gmail.com>2011-09-04 14:51:23 +0200
committerpurandi <free6300@gmail.com>2011-09-04 14:51:23 +0200
commitab0dbd4b992778678e00ea3f2a3dd4bf5f1ff504 (patch)
tree740d3cabe5e51f18578a72abf6e13e62fba9eb62 /system/helpers/typography_helper.php
parentdcf3d1bf17e1354ff0a644f390ed590f2e65298b (diff)
parent2eb2557bf1c438d8fb7d612dbb76c6676eaec4d6 (diff)
Merge branch 'develop', remote-tracking branch 'origin/develop' into develop
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);
}
}