geshi encode warning (task #47)

darcs-hash:20050115110017-9977f-0a8a59881d22bbf56a9337dc630d79e788cf700b.gz
This commit is contained in:
andi 2005-01-15 12:00:17 +01:00
parent 78e788accb
commit a5ccc4f040
1 changed files with 1 additions and 0 deletions

View File

@ -781,6 +781,7 @@ function preformat($text,$type,$option=''){
//use geshi for highlighting
require_once("inc/geshi.php");
$geshi = new GeSHi($text, strtolower($option), "inc/geshi");
$geshi->set_encoding($lang['encoding']);
$geshi->enable_classes();
$geshi->set_header_type(GESHI_HEADER_PRE);
$geshi->set_overall_class('code');