diff options
Diffstat (limited to 'framework/3rdParty/TextHighlighter/Text/Highlighter.php')
-rw-r--r-- | framework/3rdParty/TextHighlighter/Text/Highlighter.php | 6 |
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;
|