mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2025-04-21 10:24:37 +00:00
parent
03e6a1cb99
commit
52dfec62cd
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') ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user