diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-11-03 21:05:25 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-11-03 21:05:25 +0000 |
commit | 7ab232a45504ef357a19d9ab58dd27c454e12784 (patch) | |
tree | 56724a9a8bd34a4a5ad75b24f78be1b299832899 /phpBB/includes/utf | |
parent | b0989c3f4d67e6f9d211a526aeee44686e3bc671 (diff) | |
download | forums-7ab232a45504ef357a19d9ab58dd27c454e12784.tar forums-7ab232a45504ef357a19d9ab58dd27c454e12784.tar.gz forums-7ab232a45504ef357a19d9ab58dd27c454e12784.tar.bz2 forums-7ab232a45504ef357a19d9ab58dd27c454e12784.tar.xz forums-7ab232a45504ef357a19d9ab58dd27c454e12784.zip |
ok, i am an idiot...
git-svn-id: file:///svn/phpbb/trunk@6548 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/utf')
-rw-r--r-- | phpBB/includes/utf/utf_tools.php | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/phpBB/includes/utf/utf_tools.php b/phpBB/includes/utf/utf_tools.php index fdf68d092e..aa29159d5e 100644 --- a/phpBB/includes/utf/utf_tools.php +++ b/phpBB/includes/utf/utf_tools.php @@ -967,44 +967,4 @@ function utf8_clean_string($text) return $text; } -if (version_compare(phpversion(), '5', '>=')) -{ - /** - * @ignore - */ - function utf8_html_entity_decode($string, $quote_style = ENT_COMPAT) - { - return html_entity_decode($string, $quote_style, 'UTF-8'); - } -} -else -{ - /** - * @todo needs documenting - */ - function utf8_html_entity_decode($string, $quote_style = ENT_COMPAT) - { - static $static_table; - - if ($static_table === null) - { - $static_table = array_map('utf8_encode', array_flip(get_html_translation_table(HTML_ENTITIES))); - } - - $modified_table = $static_table; - - if ($quote_style === ENT_QUOTES) - { - $modified_table['''] = "'"; - } - - if ($quote_style === ENT_NOQUOTES) - { - unset($modified_table['"']); - } - - return strtr($string, $modified_table); - } -} - ?>
\ No newline at end of file |