diff --git a/web/app/controllers/problem.php b/web/app/controllers/problem.php index ca51a30..1b9be67 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -210,9 +210,15 @@ if ($pre_submit_check_ret === true && !$no_more_submission) { } $conf = UOJProblem::cur()->getProblemConf(); + +if (UOJContest::cur()) { + $pageTitle = UOJProblem::cur()->getTitle(['with' => 'letter', 'simplify' => true]); +} else { + $pageTitle = UOJProblem::cur()->getTitle(['with' => 'id']); +} ?> - +
diff --git a/web/app/controllers/problem_solutions.php b/web/app/controllers/problem_solutions.php index 8b31e3d..9573abd 100644 --- a/web/app/controllers/problem_solutions.php +++ b/web/app/controllers/problem_solutions.php @@ -120,7 +120,7 @@ $pag_config['tail'] = "order by zan desc, post_time desc, id asc"; $pag = new Paginator($pag_config); ?> - +getTitle(['with' => 'id']))) ?>