Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyo committed Aug 20, 2018
1 parent 5000c95 commit eedc677
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/themes/bootstrap/index.php
Expand Up @@ -2,9 +2,11 @@
<?php
header("Content-type: text/html; charset=utf-8");
$md_path_all = $lister->getListedPath();
$md_path = explode("com", $md_path_all);
$suffix_array = explode('.', $_SERVER['SERVER_NAME']);
$suffix = end($suffix_array);
$md_path = explode($suffix, $md_path_all);
if($md_path[1] != ""){
$md_path_last = substr($md_path[1], -1);
$md_path_last = substr($md_path[1], -1);;
if($md_path_last != "/"){
$md_file = ".".$md_path[1]."/README.html";
}else{
Expand Down

0 comments on commit eedc677

Please sign in to comment.