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:
+1
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user