Skip to content

Commit

Permalink
MDL-39172 Import of .dat files is broken in blackboard_six import format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Michel Vedrine committed Apr 18, 2013
1 parent dd8e2dd commit d56837d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question/format/blackboard_six/format.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d56837d

Please sign in to comment.