Custom themes are now loaded from "/themes" directory from project root. The themes provided by Redmine (alternate and classic) remains in "app/assets/themes" (#39111).

git-svn-id: https://svn.redmine.org/redmine/trunk@22708 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-02-13 23:11:28 +00:00
parent 17a0ec4c9a
commit 9155b777e6
2 changed files with 1 additions and 1 deletions

View File

@@ -148,7 +148,7 @@ module Redmine
end
def self.scan_themes
dirs = Dir.glob("#{Rails.root}/app/assets/themes/*").select do |f|
dirs = Dir.glob(["#{Rails.root}/app/assets/themes/*", "#{Rails.root}/themes/*"]).select do |f|
# A theme should at least override application.css
File.directory?(f) && File.exist?("#{f}/stylesheets/application.css")
end