From ce86eb4d0833ce23b16b5a9a1ec47db81e6a90bb Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Tue, 18 Sep 2012 15:27:58 +0800 Subject: [PATCH] MDL-35202: Allow for language files that contain non-ascii for actions in assignment --- mod/assign/locallib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index e1e5104a0439f..a1e24b43512a7 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -319,18 +319,18 @@ public function view($action='') { $this->process_batch_grading_operation(); $action = 'grading'; } 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)) {