mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-39172 Import of .dat files is broken in blackboard_six import format
This commit is contained in:
parent
3a8c4380c0
commit
b48193383f
@ -78,10 +78,10 @@ class qformat_blackboard_six extends qformat_blackboard_six_base {
|
||||
// For now we will do that searching for a required tag.
|
||||
// This is certainly not bullet-proof but works for all usual files.
|
||||
$fileobj->text = file_get_contents($filename);
|
||||
if (strpos($text, '<questestinterop>')) {
|
||||
if (strpos($fileobj->text, '<questestinterop>')) {
|
||||
$fileobj->filetype = self::FILETYPE_QTI;
|
||||
}
|
||||
if (strpos($text, '<POOL>')) {
|
||||
if (strpos($fileobj->text, '<POOL>')) {
|
||||
$fileobj->filetype = self::FILETYPE_POOL;
|
||||
}
|
||||
// In all other cases we are not able to handle this question file.
|
||||
|
Loading…
x
Reference in New Issue
Block a user