1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

[preview] internal handler use inner_path

This commit is contained in:
Hu
2018-07-27 13:26:57 +08:00
parent 26c57f17bc
commit 5de019688a

View File

@@ -733,7 +733,7 @@ def view_lib_file(request, repo_id, path):
return_dict['err'] = error_msg
return render(request, 'view_file_base.html', return_dict)
error_msg = prepare_converted_html(raw_path, file_id, fileext, return_dict)
error_msg = prepare_converted_html(inner_path, file_id, fileext, return_dict)
if error_msg:
return_dict['err'] = error_msg
return render(request, template, return_dict)