diff --git a/backup/restorelib.php b/backup/restorelib.php index ffed41616c3..48fd435e5b3 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -99,11 +99,151 @@ } } } + + //Now I'm going to decode to their new location all the links in wiki texts + //having the syntax " modulename:moduleid". + echo "
  • wiki"; + $status = restore_decode_wiki_texts($restore); + echo ""; return $status; } + //This function search for some wiki texts in differenct parts of Moodle to + //decode them to their new ids. + function restore_decode_wiki_texts($restore) { + + global $CFG; + + $status = true; + + echo "