Skip to content

Commit

Permalink
Fixes bug on missing buttons for help files
Browse files Browse the repository at this point in the history
  • Loading branch information
burisu committed Sep 3, 2012
1 parent 62e4451 commit 68ec5b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/helpers/application_helper.rb
Expand Up @@ -528,7 +528,9 @@ def wikize(content, options={})
src = data[0].strip
if src.match(/^theme:/)
# src = image_path("/themes/#{@current_theme}/images/#{src.split(':')[1]}")
src = image_path("themes/#{@current_theme}/#{src.split(':')[1]}")
path = src.split(':')[1]
path.gsub!(/^buttons/, "icons")
src = image_path("themes/#{@current_theme}/#{path}")
else
src = image_path(src)
end
Expand Down

0 comments on commit 68ec5b2

Please sign in to comment.