Commit fc10af50 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

php does not like ../?

parent 5ba8aa5d
...@@ -243,6 +243,8 @@ function parse_kml($path,$file){ ...@@ -243,6 +243,8 @@ function parse_kml($path,$file){
if (is_file($master_kml)){ if (is_file($master_kml)){
$xml = simplexml_load_file($master_kml); $xml = simplexml_load_file($master_kml);
$file = "../".($xml->name)."/".($xml->name); $file = "../".($xml->name)."/".($xml->name);
$path = dirname($path);
$file = "/".($xml->name)."/".($xml->name);
} }
$pf = "$path/$file.kml"; $pf = "$path/$file.kml";
...@@ -260,7 +262,7 @@ function parse_kml($path,$file){ ...@@ -260,7 +262,7 @@ function parse_kml($path,$file){
} }
}else{ }else{
echo "File not found, you suck!\n"; //echo "File not found ".$pf."\n";
$res = <<<TEXT $res = <<<TEXT
<Camera> <Camera>
<longitude>-111.9328843</longitude> <longitude>-111.9328843</longitude>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment