]> git.mjollnir.org Git - moodle.git/commitdiff
PHP 4 assignment is by value so course_header (containing edited names)
authorstronk7 <stronk7>
Wed, 14 Feb 2007 23:54:20 +0000 (23:54 +0000)
committerstronk7 <stronk7>
Wed, 14 Feb 2007 23:54:20 +0000 (23:54 +0000)
wasn't being modified. MDL-8298

Merged from MOODLE_18_STABLE

backup/restore_check.html

index e8d55b38b5112976b5847fc03abd4e17279be13b..d28cf701ec39588b905224994571ab11722fff1a 100644 (file)
@@ -26,6 +26,9 @@
         $restore->course_startdateoffset = $coursestartdatedateoffset; //change to restore
     } 
 
+    ///Enforce SESSION->course_header rewrite (PHP 4.x needed because assigns are by value) MDL-8298
+    $SESSION->course_header = $course_header;
+
     //If restore session info exists, but we are coming from the form
     //it has prioriry
     if (isset($restore) and !empty($fromform)) {