mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
MDL-46718: Return user to last accessed page when quick grading
This commit is contained in:
parent
753493ae11
commit
f707b67259
4 changed files with 16 additions and 3 deletions
|
@ -74,12 +74,14 @@ class assign_gradingmessage implements renderable {
|
|||
* @param string $message This is the message to display
|
||||
* @param bool $gradingerror Set to true to display the message as an error.
|
||||
* @param int $coursemoduleid
|
||||
* @param int $page This is the current quick grading page
|
||||
*/
|
||||
public function __construct($heading, $message, $coursemoduleid, $gradingerror = false) {
|
||||
public function __construct($heading, $message, $coursemoduleid, $gradingerror = false, $page = null) {
|
||||
$this->heading = $heading;
|
||||
$this->message = $message;
|
||||
$this->coursemoduleid = $coursemoduleid;
|
||||
$this->gradingerror = $gradingerror;
|
||||
$this->page = $page;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue