Skip to content
Permalink
Browse files

Allow upload xlsx files to import exercise - refs BT#14750

  • Loading branch information...
AngelFQC committed Sep 26, 2018
1 parent 79f7b01 commit 8397a1d23d38b9d52df5f2956349c5f768cfbfb8
Showing with 1 addition and 1 deletion.
  1. +1 −1 main/exercise/upload_exercise.php
@@ -140,7 +140,7 @@ function lp_upload_quiz_action_handling()
$path_info = pathinfo($_FILES['user_upload_quiz']['name']);
// Check if the document is an Excel document
if ($path_info['extension'] != 'xls') {
if (!in_array($path_info['extension'], ['xls', 'xlsx'])) {
return;
}

0 comments on commit 8397a1d

Please sign in to comment.
You can’t perform that action at this time.