Skip to content
Browse files

MDL-39172 Import of .dat files is broken in blackboard_six import format

  • Loading branch information...
1 parent dd8e2dd commit d56837de600d9beac86db15b8eb986c761cb4644 Jean-Michel Vedrine committed Apr 16, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/format/blackboard_six/format.php
View
4 question/format/blackboard_six/format.php
@@ -78,10 +78,10 @@ public function readdata($filename) {
// 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.

0 comments on commit d56837d

Please sign in to comment.
Something went wrong with that request. Please try again.