Skip to content

Commit

Permalink
fix: now using theme from site directory
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK32 committed Jul 12, 2008
1 parent 626479f commit 5412018
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -18,7 +18,13 @@ def error
private

def set_file
theme = Theme.find(params[:theme_id], params[:subdir])

if params[:subdir]
theme = Theme.find(params[:theme_id], params[:subdir])
else
site = Site.find_by_host(request.host_with_port)
theme = site.themes.find(params[:theme_id])
end
@file = if params[:file].first == 'preview.png'
theme.preview
else
Expand Down

0 comments on commit 5412018

Please sign in to comment.