question XML import/export MDL-18916 Fix import of questions with images exported from Moodle 1.9.

Thanks again to Patrick Pollet
This commit is contained in:
Tim Hunt
2010-11-19 14:24:18 +00:00
parent ae440dec90
commit 06f1bd03be
2 changed files with 13 additions and 10 deletions
+1 -5
View File
@@ -880,12 +880,8 @@ class qformat_default {
if ($file->is_directory()) {
continue;
}
$string .= '<file ';
$string .= ('name="' . $file->get_filename() . '"');
$string .= (' encoding="' . $encoding . '"');
$string .= '>';
$string .= '<file name="' . $file->get_filename() . '" encoding="' . $encoding . '">';
$string .= base64_encode($file->get_content());
//$string .= 'base64';
$string .= '</file>';
}
return $string;