mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
Exam's tag jump to task.php instead of messages.php when the exam type is task
This commit is contained in:
@@ -2910,7 +2910,7 @@ if ($msgalert)
|
|||||||
$exam = new \Nexus\Exam\Exam();
|
$exam = new \Nexus\Exam\Exam();
|
||||||
$currentExam = $exam->getCurrent($CURUSER['id']);
|
$currentExam = $exam->getCurrent($CURUSER['id']);
|
||||||
if (!empty($currentExam['html'])) {
|
if (!empty($currentExam['html'])) {
|
||||||
msgalert("messages.php", $currentExam['html'], $currentExam['exam']->background_color ?? 'blue');
|
msgalert($currentExam['exam']->type==\App\Models\Exam::TYPE_TASK ? "task.php" : "messages.php", $currentExam['html'], $currentExam['exam']->background_color ?? 'blue');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($offlinemsg)
|
if ($offlinemsg)
|
||||||
|
|||||||
Reference in New Issue
Block a user