MDL-35202: Allow for language files that contain non-ascii for actions in assignment
authorDamyon Wiese <damyon.wiese@netspot.com.au>
Tue, 18 Sep 2012 07:11:48 +0000 (15:11 +0800)
committerDamyon Wiese <damyon.wiese@netspot.com.au>
Tue, 18 Sep 2012 07:11:48 +0000 (15:11 +0800)
mod/assign/locallib.php

index 277b05b..9ffb5b9 100644 (file)
@@ -343,18 +343,18 @@ class assign {
         } else if ($action == 'gradingbatchoperation') {
             $action = $this->process_grading_batch_operation($mform);
         } else if ($action == 'submitgrade') {
-            if (optional_param('saveandshownext', null, PARAM_ALPHA)) {
+            if (optional_param('saveandshownext', null, PARAM_RAW)) {
                 //save and show next
                 $action = 'grade';
                 if ($this->process_save_grade($mform)) {
                     $action = 'nextgrade';
                 }
-            } else if (optional_param('nosaveandprevious', null, PARAM_ALPHA)) {
+            } else if (optional_param('nosaveandprevious', null, PARAM_RAW)) {
                 $action = 'previousgrade';
-            } else if (optional_param('nosaveandnext', null, PARAM_ALPHA)) {
+            } else if (optional_param('nosaveandnext', null, PARAM_RAW)) {
                 //show next button
                 $action = 'nextgrade';
-            } else if (optional_param('savegrade', null, PARAM_ALPHA)) {
+            } else if (optional_param('savegrade', null, PARAM_RAW)) {
                 //save changes button
                 $action = 'grade';
                 if ($this->process_save_grade($mform)) {