Permalink
Browse files

Hooks to call pre15 restore included.

(not working yet)
Hard work starts now! ;-)
  • Loading branch information...
1 parent 3e86fa9 commit 9e72253b32c8d68579052bb2f530fc3fafb0c845 stronk7 committed May 10, 2005
Showing with 12 additions and 0 deletions.
  1. +12 −0 mod/quiz/restorelib.php
View
12 mod/quiz/restorelib.php
@@ -110,6 +110,12 @@ function quiz_restore_question_categories($category,$restore) {
$status = true;
+ //Hook to call Moodle < 1.5 Quiz Restore
+ if ($restore->backup_version < 2005043000) {
+ include_once("restorelibpre15.php");
+ return quiz_restore_pre15_question_categories($category,$restore);
+ }
+
//Get record from backup_ids
$data = backup_getid($restore->backup_unique_code,"quiz_categories",$category->id);
@@ -1216,6 +1222,12 @@ function quiz_restore_mods($mod,$restore) {
$status = true;
+ //Hook to call Moodle < 1.5 Quiz Restore
+ if ($restore->backup_version < 2005043000) {
+ include_once("restorelibpre15.php");
+ return quiz_restore_pre15_mods($mod,$restore);
+ }
+
//Get record from backup_ids
$data = backup_getid($restore->backup_unique_code,$mod->modtype,$mod->id);

0 comments on commit 9e72253

Please sign in to comment.