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