Always set the scanDir to $docRoot.$iceRoot

This commit is contained in:
Matt Pass
2013-02-26 16:57:17 +00:00
parent 29981dfd52
commit a0a70495f0

View File

@@ -14,7 +14,7 @@ $dirCount=0;
<div id="branch">
<?php
// If we're just getting a branch, get that and set as the finalArray
$scanDir = ($docRoot && $iceRoot) ? $docRoot.$iceRoot : $_SERVER['DOCUMENT_ROOT'];
$scanDir = $docRoot.$iceRoot;
$location = "";
if (isset($_GET['location'])) {
$location = str_replace("|","/",$_GET['location']);