summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-01-15 12:00:17 +0100
committerandi <andi@splitbrain.org>2005-01-15 12:00:17 +0100
commita5ccc4f04046c0aa8d881975b192300fc41c9978 (patch)
treeb808fc32678056bccd4af8b497321cdcfef9811a
parent78e788accbcea7d7723fb2940ca949d4c6de30c4 (diff)
downloadrpg-a5ccc4f04046c0aa8d881975b192300fc41c9978.tar.gz
rpg-a5ccc4f04046c0aa8d881975b192300fc41c9978.tar.bz2
geshi encode warning (task #47)
darcs-hash:20050115110017-9977f-0a8a59881d22bbf56a9337dc630d79e788cf700b.gz
-rw-r--r--inc/parser.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/parser.php b/inc/parser.php
index 556533af6..399c23007 100644
--- a/inc/parser.php
+++ b/inc/parser.php
@@ -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');