1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 03:18:23 +00:00

no PDF view when no DOCUMENT_CONVERTOR_ROOT

This commit is contained in:
lins05
2012-12-07 20:07:51 +08:00
parent beaf3395d9
commit 05815844a1

View File

@@ -270,7 +270,7 @@ def valid_previewed_file(filename):
filetype = FILEEXT_TYPE_MAP.get(fileExt)
if filetype:
# Check whether this kind of file can be previewd.
if filetype == 'Document':
if filetype == 'Document' or filetype == 'PDF':
return (filetype, fileExt) if DOCUMENT_CONVERTOR_ROOT \
else ('Unknown', fileExt)
else: