mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 00:36:14 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user