MDL-23479 fix typo in restore code
authorDan Marsden <Dan@digitalclay.co.nz>
Thu, 29 Jul 2010 03:58:55 +0000 (03:58 +0000)
committerDan Marsden <Dan@digitalclay.co.nz>
Thu, 29 Jul 2010 03:58:55 +0000 (03:58 +0000)
backup/util/helper/restore_structure_parser_processor.class.php

index 29ab6a5..b3b272d 100644 (file)
@@ -63,7 +63,7 @@ class restore_structure_parser_processor extends grouped_parser_processor {
         // Decode file.php calls
         $search = array ("$@FILEPHP@$");
         $replace = array(get_file_url($this->courseid));
-        $result = str_replace($search, $replace, $content);
+        $result = str_replace($search, $replace, $cdata);
         // Now $@SLASH@$ and $@FORCEDOWNLOAD@$ MDL-18799
         $search = array('$@SLASH@$', '$@FORCEDOWNLOAD@$');
         if ($CFG->slasharguments) {