mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Use the data_submitted() function to get POST data ... allows checking etc
This commit is contained in:
parent
8dcd43f3fe
commit
9d996871bb
1 changed files with 2 additions and 2 deletions
|
@ -697,7 +697,7 @@
|
|||
}
|
||||
|
||||
$timenow = time();
|
||||
$form = (object) $HTTP_POST_VARS;
|
||||
$form = data_submitted();
|
||||
|
||||
if ($form->pageid) {
|
||||
// the new page is not the first page
|
||||
|
@ -938,7 +938,7 @@
|
|||
}
|
||||
|
||||
$timenow = time();
|
||||
$form = (object) $HTTP_POST_VARS;
|
||||
$form = data_submitted();
|
||||
|
||||
$page->id = $form->pageid;
|
||||
$page->timemodified = $timenow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue