Fix references to store in traversal
This commit is contained in:
parent
f63feaf017
commit
2ef842a730
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ module Middleman
|
|||
|
||||
test_expr = parts.join('\\/')
|
||||
# eponymous reverse-lookup
|
||||
found = store.resources.find do |candidate|
|
||||
found = @store.resources.find do |candidate|
|
||||
candidate.path =~ %r!^#{test_expr}(?:\.[a-zA-Z0-9]+|\/)$!
|
||||
end
|
||||
|
||||
|
@ -21,7 +21,7 @@ module Middleman
|
|||
found
|
||||
else
|
||||
parts.pop if is_index
|
||||
store.find_resource_by_destination_path("#{parts.join('/')}/#{@app.config[:index_file]}")
|
||||
@store.find_resource_by_destination_path("#{parts.join('/')}/#{@app.config[:index_file]}")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue