mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 20:08:42 +00:00
fix(web/problem): page title
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c764927af6
commit
4f5bbf82a5
@ -210,9 +210,15 @@ if ($pre_submit_check_ret === true && !$no_more_submission) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$conf = UOJProblem::cur()->getProblemConf();
|
$conf = UOJProblem::cur()->getProblemConf();
|
||||||
|
|
||||||
|
if (UOJContest::cur()) {
|
||||||
|
$pageTitle = UOJProblem::cur()->getTitle(['with' => 'letter', 'simplify' => true]);
|
||||||
|
} else {
|
||||||
|
$pageTitle = UOJProblem::cur()->getTitle(['with' => 'id']);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php echoUOJPageHeader(HTML::stripTags($problem['title']) . ' - ' . UOJLocale::get('problems::problem')) ?>
|
<?php echoUOJPageHeader(HTML::stripTags($pageTitle) . ' - ' . UOJLocale::get('problems::problem')) ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Left col -->
|
<!-- Left col -->
|
||||||
|
@ -120,7 +120,7 @@ $pag_config['tail'] = "order by zan desc, post_time desc, id asc";
|
|||||||
$pag = new Paginator($pag_config);
|
$pag = new Paginator($pag_config);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php echoUOJPageHeader(UOJLocale::get('problems::solutions') . ' - ' . HTML::stripTags($problem['title'])) ?>
|
<?php echoUOJPageHeader(UOJLocale::get('problems::solutions') . ' - ' . HTML::stripTags(UOJProblem::cur()->getTitle(['with' => 'id']))) ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Left col -->
|
<!-- Left col -->
|
||||||
|
Loading…
Reference in New Issue
Block a user