Permalink
Browse files

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

  • Loading branch information...
1 parent 3a8c438 commit b48193383f1af7cc956aa3a1c4a819921e468247 Jean-Michel Vedrine committed Apr 16, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 b481933

Please sign in to comment.