summaryrefslogtreecommitdiff
path: root/framework/3rdParty
diff options
context:
space:
mode:
authorxue <>2007-08-30 16:01:42 +0000
committerxue <>2007-08-30 16:01:42 +0000
commit41d70fd8194ddcb4a4ce065fb265c0e0f278a0c8 (patch)
tree7c5f74cabab5ac4937060a711ff8b974b0e85bd4 /framework/3rdParty
parentd1875fd32e0aa7a093544b5decd0b43499424d4f (diff)
simpel fix.
Diffstat (limited to 'framework/3rdParty')
-rw-r--r--framework/3rdParty/TextHighlighter/Text/Highlighter.php6
1 files changed, 5 insertions, 1 deletions
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;