]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #6067 - The restore process behaves differently depending on which module contain...
authorskodak <skodak>
Tue, 11 Jul 2006 10:01:33 +0000 (10:01 +0000)
committerskodak <skodak>
Tue, 11 Jul 2006 10:01:33 +0000 (10:01 +0000)
backup/backuplib.php
backup/restorelib.php

index e551d55666203d8e9b7fdb4750b09218759a4cb6..f91d6479b5da1652dd0b2b2fdbaee91f534e9dea 100644 (file)
 
         foreach ($mypreferences->mods as $name => $info) {
             //Check if the xxxx_encode_content_links exists
+            include_once("$CFG->dirroot/mod/$name/backuplib.php");
             $function_name = $name."_encode_content_links";
             if (function_exists($function_name)) {
                 $result = $function_name($result,$mypreferences);
index b161d68131f99a6dbff48fc0a965b30fd1cd0d64..2eab43b02881d5188bcddd74ba539e043f386ebd 100644 (file)
@@ -63,6 +63,8 @@
     //from backup format to destination site/course in order to mantain inter-activities
     //working in the backup/restore process
     function restore_decode_content_links($restore) {
+        global $CFG;
+
         $status = true;
 
         if (!defined('RESTORE_SILENTLY')) {
@@ -72,6 +74,7 @@
             //If the module is being restored
             if ($info->restore == 1) {
                 //Check if the xxxx_decode_content_links_caller exists
+                   include_once("$CFG->dirroot/mod/$name/restorelib.php");
                 $function_name = $name."_decode_content_links_caller";
                 if (function_exists($function_name)) {
                     if (!defined('RESTORE_SILENTLY')) {