mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 23:11:44 +08:00
FIX: Make rake site:export_structure export uploads (#13938)
It failed because of an undefined variable.
This commit is contained in:
parent
4122affc0f
commit
e2af2a2219
|
@ -47,7 +47,7 @@ class ZippedSiteStructure
|
||||||
puts " - Exporting upload #{upload_or_id_or_url} to #{zip_path}"
|
puts " - Exporting upload #{upload_or_id_or_url} to #{zip_path}"
|
||||||
@zip.add(zip_path, local_path)
|
@zip.add(zip_path, local_path)
|
||||||
|
|
||||||
{ filename: upload.original_filename, path: file_zip_path }
|
{ filename: upload.original_filename, path: zip_path }
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_upload(upload, opts = {})
|
def get_upload(upload, opts = {})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user