diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-16 20:45:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-16 20:45:13 +0000 |
commit | 18066ba8bf68da4b00b7e740e6c67f8d8b1e0093 (patch) | |
tree | 88938ddd8aec7690c19064ae7f0426ab5f6eb9d3 /lib | |
parent | ad25d15d6cee6ec7c4aff197473e6b6284f85754 (diff) | |
download | redmine-18066ba8bf68da4b00b7e740e6c67f8d8b1e0093.tar.gz redmine-18066ba8bf68da4b00b7e740e6c67f8d8b1e0093.zip |
Added a couple of mime types so that corresponding files can be viewed in the browser.
Added a simple (and not perfect) CodeRay scanner for php.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1070 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/mime_type.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/redmine/mime_type.rb b/lib/redmine/mime_type.rb index e041c731f..c9db93956 100644 --- a/lib/redmine/mime_type.rb +++ b/lib/redmine/mime_type.rb @@ -19,13 +19,18 @@ module Redmine module MimeType MIME_TYPES = { - 'text/plain' => 'txt', + 'text/plain' => 'txt,tpl,properties', 'text/css' => 'css', 'text/html' => 'html,htm,xhtml', 'text/x-c' => 'c,cpp,h', + 'text/x-java' => 'java', 'text/x-javascript' => 'js', 'text/x-html-template' => 'rhtml', + 'text/x-perl' => 'pl,pm', + 'text/x-php' => 'php,php3,php4,php5', + 'text/x-python' => 'py', 'text/x-ruby' => 'rb,rbw,ruby,rake', + 'text/x-sh' => 'sh', 'text/xml' => 'xml', 'text/yaml' => 'yml,yaml', 'image/gif' => 'gif', |