From 41d70fd8194ddcb4a4ce065fb265c0e0f278a0c8 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 30 Aug 2007 16:01:42 +0000 Subject: simpel fix. --- framework/3rdParty/TextHighlighter/Text/Highlighter.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'framework/3rdParty/TextHighlighter/Text') diff --git a/framework/3rdParty/TextHighlighter/Text/Highlighter.php b/framework/3rdParty/TextHighlighter/Text/Highlighter.php index 7a592646..b597b909 100644 --- a/framework/3rdParty/TextHighlighter/Text/Highlighter.php +++ b/framework/3rdParty/TextHighlighter/Text/Highlighter.php @@ -197,7 +197,11 @@ class Text_Highlighter public static function factory($lang, $options = array()) { $lang = strtoupper($lang); - include_once dirname(__FILE__)."/Highlighter/$lang.php"; + $langFile = dirname(__FILE__)."/Highlighter/$lang.php"; + if (is_file($langFile)) + include_once $langFile; + else + return false; $classname = 'Text_Highlighter_' . $lang; -- cgit v1.2.3