mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-25 13:11:52 +00:00
This commit is contained in:
parent
29371d550e
commit
bd09e2aae6
@ -97,8 +97,10 @@ class HTML {
|
||||
// }
|
||||
if ($param) {
|
||||
$url .= $path.'?'.HTML::query_string_encode($param);
|
||||
} else if ($url != '/') {
|
||||
} else if ($path != '/') {
|
||||
$url .= rtrim($path, '/');
|
||||
} else {
|
||||
$url = $path;
|
||||
}
|
||||
return HTML::escape($url);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div class="navbar navbar-light navbar-expand-md bg-light mb-4" role="navigation">
|
||||
<a class="navbar-brand" href="/"><?= UOJConfig::$data['profile']['oj-name-short'] ?></a>
|
||||
<a class="navbar-brand" href="<?= HTML::url('/') ?>"><?= UOJConfig::$data['profile']['oj-name-short'] ?></a>
|
||||
<button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
Loading…
Reference in New Issue
Block a user