mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue