mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
"MDL-14129, fix print_error"
This commit is contained in:
parent
02dc703298
commit
b121a4eed9
8 changed files with 23 additions and 20 deletions
|
@ -96,7 +96,7 @@ switch ($action) {
|
|||
|
||||
default: //ERROR.
|
||||
if (debugging()) {
|
||||
print_error('Error, unknown button/action. Probably a user-interface bug!', '', $returnurl);
|
||||
print_error('unknowaction', '', $returnurl);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ function groups_param_action($prefix = 'act_') {
|
|||
}
|
||||
if ($action && !preg_match('/^\w+$/', $action)) {
|
||||
$action = false;
|
||||
print_error('Action had wrong type.');
|
||||
print_error('unknowaction');
|
||||
}
|
||||
///if (debugging()) echo 'Debug: '.$action;
|
||||
return $action;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue