1
0
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:
zhengxie
2013-01-09 11:49:43 +08:00
parent 7d2f21fa33
commit aa7741adf4
2 changed files with 2 additions and 2 deletions

View File

@@ -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>

View File

@@ -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.