From d56837de600d9beac86db15b8eb986c761cb4644 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Tue, 16 Apr 2013 22:04:55 +0200 Subject: [PATCH] MDL-39172 Import of .dat files is broken in blackboard_six import format --- question/format/blackboard_six/format.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/format/blackboard_six/format.php b/question/format/blackboard_six/format.php index 2fab6f8b63d..8374ef4828a 100644 --- a/question/format/blackboard_six/format.php +++ b/question/format/blackboard_six/format.php @@ -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, '')) { + if (strpos($fileobj->text, '')) { $fileobj->filetype = self::FILETYPE_QTI; } - if (strpos($text, '')) { + if (strpos($fileobj->text, '')) { $fileobj->filetype = self::FILETYPE_POOL; } // In all other cases we are not able to handle this question file. -- 2.43.0