font files were not correctly served with Locomotive running in single-site
This commit is contained in:
parent
164be33e06
commit
47ffafca20
@ -10,7 +10,11 @@ module Locomotive
|
|||||||
|
|
||||||
def call(env)
|
def call(env)
|
||||||
if env["PATH_INFO"] =~ @path_regexp
|
if env["PATH_INFO"] =~ @path_regexp
|
||||||
|
if Locomotive.config.multi_sites?
|
||||||
site = fetch_site(env['SERVER_NAME'])
|
site = fetch_site(env['SERVER_NAME'])
|
||||||
|
else
|
||||||
|
site = Site.first
|
||||||
|
end
|
||||||
|
|
||||||
if site.nil?
|
if site.nil?
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
|
Loading…
Reference in New Issue
Block a user