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('\\/')
|
test_expr = parts.join('\\/')
|
||||||
# eponymous reverse-lookup
|
# eponymous reverse-lookup
|
||||||
found = store.resources.find do |candidate|
|
found = @store.resources.find do |candidate|
|
||||||
candidate.path =~ %r!^#{test_expr}(?:\.[a-zA-Z0-9]+|\/)$!
|
candidate.path =~ %r!^#{test_expr}(?:\.[a-zA-Z0-9]+|\/)$!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ module Middleman
|
||||||
found
|
found
|
||||||
else
|
else
|
||||||
parts.pop if is_index
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue