fix: 387fdf968b
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-20 18:11:10 +08:00
parent 03e6a1cb99
commit 52dfec62cd
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 5 additions and 3 deletions

View File

@ -88,11 +88,13 @@ class HTML {
$param = array_merge($param, $config['params']);
}
$url = '//'.UOJConfig::$data['web'][$config['location']]['host'];
$url = ''; // '//'.UOJConfig::$data['web'][$config['location']]['host'];
if ($param) {
$url .= $path.'?'.HTML::query_string_encode($param);
} else {
} elseif ($path != '/') {
$url .= rtrim($path, '/');
} else {
$url .= $path;
}
return HTML::escape($url);
}

View File

@ -39,7 +39,7 @@
<?php endif ?>
<title><?= isset($PageTitle) ? $PageTitle : UOJConfig::$data['profile']['oj-name-short'] ?> - <?= $PageMainTitle ?></title>
<script type="text/javascript">uojHome = '<?= HTML::url('/') ?>'</script>
<script type="text/javascript">uojHome = ''; // '<?= HTML::url('/') ?>'</script>
<!-- Bootstrap core CSS -->
<?= HTML::css_link('/css/bootstrap.min.css?v=2019.5.31') ?>