mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +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();
|
||||
$currentExam = $exam->getCurrent($CURUSER['id']);
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user