Permalink
Browse files

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

  • Loading branch information...
Jean-Michel Vedrine
Jean-Michel Vedrine committed Apr 16, 2013
1 parent d298661 commit 3b44cab37bdbd3237d54ecfd1af84d4b21d57a58
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 3b44cab

Please sign in to comment.