]> git.mjollnir.org Git - moodle.git/commitdiff
Restore logs consistently
authormoodler <moodler>
Wed, 18 Feb 2004 02:28:47 +0000 (02:28 +0000)
committermoodler <moodler>
Wed, 18 Feb 2004 02:28:47 +0000 (02:28 +0000)
mod/quiz/restorelib.php

index d72c2bba80d025f1d8ed999092edaa6369737632..8339dba8a6346b98a1faeded326761d2841a671e 100644 (file)
                     //Get the new_id of the attempt (to recode the url field)
                     $att = backup_getid($restore->backup_unique_code,"quiz_attempts",$attid);
                     if ($att) {
-                        $log->url = "review.php?q=".$mod->new_id."&attempt=".$att->new_id;
+                        $log->url = "review.php?id=".$log->cmid."&attempt=".$att->new_id;
                         $log->info = $mod->new_id;
                         $status = true;
                     }
                     //Get the new_id of the attempt (to recode the url field)
                     $att = backup_getid($restore->backup_unique_code,"quiz_attempts",$attid);
                     if ($att) {
-                        $log->url = "review.php?q=".$mod->new_id."&attempt=".$att->new_id;
+                        $log->url = "review.php?id=".$log->cmid."&attempt=".$att->new_id;
                         $log->info = $mod->new_id;
                         $status = true;
                     }
                     //Get the new_id of the attempt (to recode the url field)
                     $att = backup_getid($restore->backup_unique_code,"quiz_attempts",$attid);
                     if ($att) { 
-                        $log->url = "review.php?q=".$mod->new_id."&attempt=".$att->new_id;
+                        $log->url = "review.php?id=".$log->cmid."&attempt=".$att->new_id;
                         $log->info = $mod->new_id;
                         $status = true;
                     }