#17873741 : fixed the javascript error

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5936 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-03-23 09:08:02 +00:00
parent eb9e8e1956
commit f49953c7d7

View file

@ -261,10 +261,10 @@
"php" => "Php" "php" => "Php"
); );
$file_ext = strtolower($file_ext); $file_ext_tmp = strtolower($file_ext);
if($extToLang[$file_ext]) if($extToLang[$file_ext_tmp])
{ {
$file_ext = $extToLang[$file_ext]; $file_ext = $extToLang[$file_ext_tmp];
} }
if(file_exists("./common/js/plugins/code_highlighter/script/shBrush".$file_ext.".js")) if(file_exists("./common/js/plugins/code_highlighter/script/shBrush".$file_ext.".js"))
{ {
@ -277,7 +277,7 @@
</script> </script>
dpScript; dpScript;
Context::addHtmlFooter($js_code); Context::addHtmlFooter($js_code);
Context::set('file_ext', $file_ext); Context::set('file_ext', $file_ext_tmp);
} }
} }
Context::set('file_type', $file_type); Context::set('file_type', $file_type);