Replacing some HTTP_POST_VARS uses because it doesn't work always!

Using data_submitted() or $_POST

Merged form MOODLE_14_STABLE
This commit is contained in:
stronk7
2005-04-02 17:45:29 +00:00
parent d726ea77f9
commit 6a2c151a9e
2 changed files with 3 additions and 4 deletions
-1
View File
@@ -879,7 +879,6 @@
$timenow = time();
$form = data_submitted();
// first do the (teacher's) assessment of the student's submission
if (! $submission = get_record("exercise_submissions", "id", $form->sid)) {
error("Update teacher assessment: student's submission record not found");
+3 -3
View File
@@ -128,7 +128,7 @@
if (!$assessment = get_record("workshop_assessments", "id", $aid)) {
error("workshop assessment is misconfigured");
}
$form = data_submitted("nomatch"); // probably always come from the same page, change this statement
$form = data_submitted();
// store the comment in the stock comments table
if ($elementno == 99) { // it's the general comment
@@ -881,7 +881,7 @@
if (!$assessment = get_record("workshop_assessments", "id", $aid)) {
error("workshop assessment is misconfigured");
}
$form = data_submitted("nomatch"); // probably always come from the same page, change this statement
$form = data_submitted();
// delete the comment from the stock comments table
if (!delete_records("workshop_stockcomments", "id", $stockcommentid)) {
@@ -1080,7 +1080,7 @@
// don't fiddle about, delete all the old and add the new!
delete_records("workshop_grades", "assessmentid", $assessment->id);
$form = data_submitted("nomatch"); // probably always come from the same page, change this statement
$form = data_submitted();
//determine what kind of grading we have
switch ($workshop->gradingstrategy) {