mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 20:37:42 +00:00
Ignore previewd file extension, and change copyright
This commit is contained in:
@@ -143,7 +143,7 @@
|
||||
</div>
|
||||
<div class="other-info fright">
|
||||
<p>{% trans "Server Version: " %}{{ seafile_version }}</p>
|
||||
<p>© 2012 {% trans "Seafile" %}</p>
|
||||
<p>© 2013 {% trans "Seafile" %}</p>
|
||||
<p><a href="http://seafile.com/{% if LANGUAGE_CODE == 'en' %}en/{% endif %}contact/" target="_blank">{% trans "Contact Us" %}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -264,7 +264,7 @@ def valid_previewed_file(filename):
|
||||
Check whether file can preview on web
|
||||
|
||||
"""
|
||||
fileExt = os.path.splitext(filename)[1][1:]
|
||||
fileExt = os.path.splitext(filename)[1][1:].lower()
|
||||
filetype = FILEEXT_TYPE_MAP.get(fileExt)
|
||||
if filetype:
|
||||
# Check whether this kind of file can be previewd.
|
||||
|
Reference in New Issue
Block a user