Project

General

Profile

Feature #41731 ยป prevent-redmine-startup-if-themes-are-installed-in-public-themes.patch

Go MAEDA, 2024-11-12 10:17

View differences:

config/environment.rb
exit 1
end
# Make sure there's no themes in public/themes before starting
public_themes_dir = Rails.public_path.join('themes')
if Dir.glob(File.join(public_themes_dir, "*")).any?
$stderr.puts "Themes in public/themes (#{public_themes_dir}) are no longer allowed. " \
"Please, put your Redmine themes in the `themes` directory at the root of your " \
"Redmine directory (#{Rails.root.join('themes')})"
exit 1
end
# Initialize the Rails application
Rails.application.initialize!
    (1-1/1)