Skip to content

Commit

Permalink
MDL-35202: Allow for language files that contain non-ascii for action…
Browse files Browse the repository at this point in the history
…s in assignment
  • Loading branch information
Damyon Wiese committed Sep 18, 2012
1 parent 05165a7 commit ce86eb4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod/assign/locallib.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit ce86eb4

Please sign in to comment.