Permalink
Browse files

Now, course->summary

     section->summary
     user->description
are properly transformed if, in their contents, there was some
file.php call.
See bug 1631
(http://moodle.org/bugs/bug.php?op=show&bugid=1631)

Merged from MOODLE_13_STABLE.
  • Loading branch information...
1 parent 8f41f58 commit cf4033976358d70d185caa879329a5ddb2187e72 stronk7 committed Jul 10, 2004
Showing with 3 additions and 3 deletions.
  1. +3 −3 backup/restorelib.php
View
@@ -537,7 +537,7 @@ function restore_create_new_course($restore,&$course_header) {
$course->fullname = addslashes($course_header->course_fullname);
$course->shortname = addslashes($course_header->course_shortname);
$course->idnumber = addslashes($course_header->course_idnumber);
- $course->summary = addslashes($course_header->course_summary);
+ $course->summary = restore_decode_absolute_links(addslashes($course_header->course_summary));
$course->format = addslashes($course_header->course_format);
$course->showgrades = addslashes($course_header->course_showgrades);
$course->blockinfo = addslashes($course_header->blockinfo);
@@ -616,7 +616,7 @@ function restore_create_sections($restore,$xml_file) {
$sequence = "";
$section->course = $restore->course_id;
$section->section = $sect->number;
- $section->summary = addslashes($sect->summary);
+ $section->summary = restore_decode_absolute_links(addslashes($sect->summary));
$section->visible = $sect->visible;
$section->sequence = "";
//Now calculate the section's newid
@@ -806,7 +806,7 @@ function restore_create_users($restore,$xml_file) {
$user->address = addslashes($user->address);
$user->city = addslashes($user->city);
$user->url = addslashes($user->url);
- $user->description = addslashes($user->description);
+ $user->description = restore_decode_absolute_links(addslashes($user->description));
//We are going to create the user
//The structure is exactly as we need
$newid = insert_record ("user",$user);

0 comments on commit cf40339

Please sign in to comment.