mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
FIXED: loss content on editing a page
This commit is contained in:
parent
156f67fd22
commit
98dd2c00f4
@ -35,7 +35,7 @@
|
||||
$page->title = clean_param($form->title, PARAM_CLEANHTML);
|
||||
$page->contents = clean_param(trim($form->contents), PARAM_CLEANHTML);
|
||||
$page->title = addslashes($page->title);
|
||||
$page->contents = addslashes($page->title);
|
||||
$page->contents = addslashes($page->contents);
|
||||
if (!update_record("lesson_pages", $page)) {
|
||||
error("Update page: page not updated");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user