1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00

Remove internal CodeRay scanners (#26055).

Patch by Mischa The Evil.

git-svn-id: http://svn.redmine.org/redmine/trunk@16622 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-06-06 21:54:55 +00:00
parent b997f03211
commit 6198bde366

View File

@ -72,7 +72,8 @@ module Redmine
def language_supported?(language)
supported_languages =
::CodeRay::Scanners.list +
::CodeRay::Scanners.plugin_hash.keys.map(&:to_sym)
::CodeRay::Scanners.plugin_hash.keys.map(&:to_sym) -
%w(debug default raydebug scanner).map(&:to_sym)
supported_languages.include?(language.to_s.downcase.to_sym)
rescue
false