1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-04-21 10:24:37 +00:00

fix: 387fdf968b7a629f319b552656bd91a4439e771a

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
web/app

@ -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);
}

@ -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') ?>