1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-03 23:37:39 +02:00

- fixed [code=php]

- optimized db/mysql.php a little bit


git-svn-id: file:///svn/phpbb/trunk@5037 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2004-12-31 13:58:41 +00:00
parent 1e334fca0e
commit cf54570f6c
4 changed files with 32 additions and 26 deletions

View File

@@ -234,6 +234,9 @@ class bbcode_firstpass extends bbcode
ini_set($ini_var, str_replace('highlight.', 'syntax', $ini_var));
}
// Because highlight_string is specialcharing the text (but we already did this before), we have to reverse this in order to get correct results
$code = strtr($code, array_flip(get_html_translation_table(HTML_ENTITIES)));
ob_start();
highlight_string($code);
$code = ob_get_contents();