diff options
author | Go MAEDA <maeda@farend.jp> | 2024-10-19 08:21:18 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-10-19 08:21:18 +0000 |
commit | ffb78c12c35192aff8e13389577ef9564ab278ee (patch) | |
tree | 3a30945edd95acb6b5df41fc8a5992783646acfa /app | |
parent | f1ae3eea67ac99d1c5b130fb0b46139bbe9f0837 (diff) | |
download | redmine-ffb78c12c35192aff8e13389577ef9564ab278ee.tar.gz redmine-ffb78c12c35192aff8e13389577ef9564ab278ee.zip |
Fix invalid "theme-*" CSS class in body element when theme name contains spaces (#26778).
Patch by Go MAEDA (user:maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@23144 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b11619088..8d390d6f7 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -863,7 +863,7 @@ module ApplicationHelper def body_css_classes css = [] if theme = Redmine::Themes.theme(Setting.ui_theme) - css << 'theme-' + theme.name + css << 'theme-' + theme.name.tr(' ', '_') end css << 'project-' + @project.identifier if @project && @project.identifier.present? |