Skip to content
Snippets Groups Projects
Commit 9faa09c6 authored by Tim Steiner's avatar Tim Steiner
Browse files

Add Office Open XML as an acceptable file type :(

parent 7050b74a
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ class Courses_EditController extends App_Controller_Action
$title = $_FILES['files']['name'][$fileType][$fileId];
$fileExtension = array_pop(explode('.', $title));
if (!in_array($fileExtension, array('rtf', 'pdf', 'odt', 'doc'))) {
if (!in_array($fileExtension, array('rtf', 'pdf', 'odt', 'doc', 'docx'))) {
continue;
}
$mimeType = $_FILES['files']['type'][$fileType][$fileId];
......
......@@ -1057,6 +1057,7 @@ if (in_array($this->request->getType(), array('NewCourseWithACE', 'AddACEToCours
<li><a href="http://en.wikipedia.org/wiki/Portable_document_format" target="_new">Portable Document Format (.pdf)</a></li>
<li><a href="http://en.wikipedia.org/wiki/Open_document_format" target="_new">OpenDocument Text (.odt)</a><li>
<li><a href="http://en.wikipedia.org/wiki/DOC_(computing)" target="_new">MS Word Documents (.doc)</a></li>
<li><a href="http://en.wikipedia.org/wiki/Office_Open_XML" target="_new">Office Open XML (.doc)</a></li>
</ul>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment