mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Log actions must be strored to DB without &
print_log() takes care of it! Bug 3853. (http://moodle.org/bugs/bug.php?op=show&bugid=3853) Merged from MOODLE_15_STABLE
This commit is contained in:
parent
dece984da0
commit
140b7eb5db
6 changed files with 13 additions and 13 deletions
|
@ -763,7 +763,7 @@
|
|||
//Get the post record from database
|
||||
$dbpos = get_record("forum_posts","id","$pos->new_id");
|
||||
if ($dbpos) {
|
||||
$log->url = "discuss.php?d=".$dbpos->discussion."&parent=".$pos->new_id;
|
||||
$log->url = "discuss.php?d=".$dbpos->discussion."&parent=".$pos->new_id;
|
||||
$log->info = $pos->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
@ -793,7 +793,7 @@
|
|||
//Get the post record from database
|
||||
$dbpos = get_record("forum_posts","id","$pos->new_id");
|
||||
if ($dbpos) {
|
||||
$log->url = "discuss.php?d=".$dbpos->discussion."&parent=".$pos->new_id;
|
||||
$log->url = "discuss.php?d=".$dbpos->discussion."&parent=".$pos->new_id;
|
||||
$log->info = $pos->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
@ -813,7 +813,7 @@
|
|||
}
|
||||
break;
|
||||
case "search":
|
||||
$log->url = "search.php?id=".$log->course."&search=".urlencode($log->info);
|
||||
$log->url = "search.php?id=".$log->course."&search=".urlencode($log->info);
|
||||
$status = true;
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -806,7 +806,7 @@
|
|||
//Get the new_id of the glossary_entry (to recode the info and url field)
|
||||
$ent = backup_getid($restore->backup_unique_code,"glossary_entries",$log->info);
|
||||
if ($ent) {
|
||||
$log->url = "view.php?id=".$log->cmid."&mode=entry&hook=".$ent->new_id;
|
||||
$log->url = "view.php?id=".$log->cmid."&mode=entry&hook=".$ent->new_id;
|
||||
$log->info = $ent->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
|
|
@ -2146,7 +2146,7 @@
|
|||
//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?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->url = "review.php?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->info = $mod->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
@ -2163,7 +2163,7 @@
|
|||
//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?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->url = "review.php?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->info = $mod->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
@ -2180,7 +2180,7 @@
|
|||
//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?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->url = "review.php?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->info = $mod->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
|
|
@ -1898,7 +1898,7 @@
|
|||
//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?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->url = "review.php?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->info = $mod->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
@ -1915,7 +1915,7 @@
|
|||
//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?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->url = "review.php?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->info = $mod->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
@ -1932,7 +1932,7 @@
|
|||
//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?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->url = "review.php?id=".$log->cmid."&attempt=".$att->new_id;
|
||||
$log->info = $mod->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
|
|
@ -383,7 +383,7 @@
|
|||
if ($mod) {
|
||||
//Rebuild the url, extracting the type (txt, xls)
|
||||
$filetype = substr($log->url,-3);
|
||||
$log->url = "download.php?id=".$log->cmid."&type=".$filetype;
|
||||
$log->url = "download.php?id=".$log->cmid."&type=".$filetype;
|
||||
$log->info = $mod->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
|
|
@ -910,7 +910,7 @@
|
|||
//Get the new_id of the workshop assessments
|
||||
$ass = backup_getid($restore->backup_unique_code,"workshop_assessments",$log->info);
|
||||
if ($ass) {
|
||||
$log->url = "assessments.php?action=viewassessment&id=".$log->cmid."&aid=".$ass->new_id;
|
||||
$log->url = "assessments.php?action=viewassessment&id=".$log->cmid."&aid=".$ass->new_id;
|
||||
$log->info = $ass->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
@ -921,7 +921,7 @@
|
|||
//Get the new_id of the workshop assessments
|
||||
$ass = backup_getid($restore->backup_unique_code,"workshop_assessments",$log->info);
|
||||
if ($ass) {
|
||||
$log->url = "assessments.php?action=viewassessment&id=".$log->cmid."&aid=".$ass->new_id;
|
||||
$log->url = "assessments.php?action=viewassessment&id=".$log->cmid."&aid=".$ass->new_id;
|
||||
$log->info = $ass->new_id;
|
||||
$status = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue