Browse Source

Trim leading slash

pull/24/head
Teknikode 8 years ago
parent
commit
fa0e20299d
  1. 4
      includes/common.php
  2. 1
      templates/default/header.php

4
includes/common.php

@ -57,9 +57,9 @@ function get_subdomain() @@ -57,9 +57,9 @@ function get_subdomain()
function get_page()
{
$url_array = explode("/",explode("/",$_SERVER["REQUEST_URI"])[1]);
$url_array = explode("/",$_SERVER["REQUEST_URI"]);
return $url_array[1];
return ltrim($url_array[1], "/");
}
function get_http($CONF)

1
templates/default/header.php

@ -204,7 +204,6 @@ @@ -204,7 +204,6 @@
<link href="<?php echo get_page_url("cdn", $CONF); ?>/<?php echo $CONF['template']; ?>/css/<?php echo $file; ?>" rel="stylesheet" />
<?php
}
echo get_page();
?>
<!--<link href="<?php echo get_page_url("cdn", $CONF); ?>/<?php echo $CONF['template']; ?>/cache/css/<?php echo $CONF['page']; ?>.teknik.min.css" rel="stylesheet" />-->
<script src="<?php echo get_page_url("cdn", $CONF); ?>/<?php echo $CONF['template']; ?>/cache/js/<?php echo $CONF['page']; ?>.teknik.min.js"></script>

Loading…
Cancel
Save