Permalink
Browse files

MDL-35202: Allow for language files that contain non-ascii for action…

…s in assignment
  • Loading branch information...
1 parent 0272a0c commit ba30fe35b9bcac651d402aa93b52ce763a7773a7 Damyon Wiese committed Sep 18, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/assign/locallib.php
View
@@ -343,18 +343,18 @@ public function view($action='') {
} 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)) {

0 comments on commit ba30fe3

Please sign in to comment.