This commit is contained in:
邱博亞 2024-01-28 15:09:09 +08:00
parent 9e944a8d68
commit 081ffbca24
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ def add_css_style_for_block(c,head_key,value_key,css_key)
[flag,c_tp]
end
def update_event_news_template(folder)
Dir["#{folder}modules/event_news/*.html.erb"].each do |f|
Dir["#{folder}modules/event_news_mod/*.html.erb"].each do |f|
c = File.open(f,'r'){|f1| f1.read}.encode("UTF-8", "UTF-8", invalid: :replace, replace: "???")
next if (c.include?("???") rescue true)
flag1,c = add_css_style_for_block(c,'speaker-head','speaker','speaker-css')