Merge pull request #23 from Kallys/master

Fix #22
This commit is contained in:
Ivan Diaz 2017-06-06 00:11:58 -03:00 committed by GitHub
commit 57fdaceaea
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<?php
$url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
$path = dirname($_SERVER['PHP_SELF']);
$path = rtrim(dirname($_SERVER['PHP_SELF']), '/');
$url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $path;
?>
<!doctype html>
<html class="no-js" lang="">
@ -25,4 +25,4 @@
</script>
<script src="<?=$url ?>/js/main.js"></script>
</body>
</html>
</html>