app/controllers/pageflow/files_controller.rb in pageflow-14.5.2 vs app/controllers/pageflow/files_controller.rb in pageflow-15.0.0.beta1
- old
+ new
@@ -6,13 +6,13 @@
before_action :check_public_https_mode
def show
respond_to do |format|
format.html do
- entry = PublishedEntry.find(params[:entry_id], entry_request_scope)
- @file = entry.find_file(file_type.model, params[:id])
+ @entry = PublishedEntry.find(params[:entry_id], entry_request_scope)
+ @file = @entry.find_file(file_type.model, params[:id])
- check_entry_password_protection(entry)
+ check_entry_password_protection(@entry)
end
end
end
protected