mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 13:28:41 +00:00
fix: 387fdf968b
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
03e6a1cb99
commit
52dfec62cd
@ -88,11 +88,13 @@ class HTML {
|
|||||||
$param = array_merge($param, $config['params']);
|
$param = array_merge($param, $config['params']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = '//'.UOJConfig::$data['web'][$config['location']]['host'];
|
$url = ''; // '//'.UOJConfig::$data['web'][$config['location']]['host'];
|
||||||
if ($param) {
|
if ($param) {
|
||||||
$url .= $path.'?'.HTML::query_string_encode($param);
|
$url .= $path.'?'.HTML::query_string_encode($param);
|
||||||
} else {
|
} elseif ($path != '/') {
|
||||||
$url .= rtrim($path, '/');
|
$url .= rtrim($path, '/');
|
||||||
|
} else {
|
||||||
|
$url .= $path;
|
||||||
}
|
}
|
||||||
return HTML::escape($url);
|
return HTML::escape($url);
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<title><?= isset($PageTitle) ? $PageTitle : UOJConfig::$data['profile']['oj-name-short'] ?> - <?= $PageMainTitle ?></title>
|
<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 -->
|
<!-- Bootstrap core CSS -->
|
||||||
<?= HTML::css_link('/css/bootstrap.min.css?v=2019.5.31') ?>
|
<?= HTML::css_link('/css/bootstrap.min.css?v=2019.5.31') ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user