mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:48:41 +00:00
fix(web/problem): answer_form->extra_validator
This commit is contained in:
parent
2dd91d1853
commit
ee0ff210bb
@ -193,7 +193,7 @@ if ($pre_submit_check_ret === true && !$no_more_submission) {
|
|||||||
'FS::randomAvailableSubmissionFileName',
|
'FS::randomAvailableSubmissionFileName',
|
||||||
'handleUpload'
|
'handleUpload'
|
||||||
);
|
);
|
||||||
$zip_answer_form->extra_validators[] = $submission_extra_validator;
|
$zip_answer_form->extra_validator = $submission_extra_validator;
|
||||||
$zip_answer_form->succ_href = $is_participating ? '/contest/' . UOJContest::info('id') . '/submissions' : '/submissions';
|
$zip_answer_form->succ_href = $is_participating ? '/contest/' . UOJContest::info('id') . '/submissions' : '/submissions';
|
||||||
$zip_answer_form->runAtServer();
|
$zip_answer_form->runAtServer();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user