Commit fc10af50 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

php does not like ../?

parent 5ba8aa5d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -243,6 +243,8 @@ function parse_kml($path,$file){
    if (is_file($master_kml)){
      $xml = simplexml_load_file($master_kml);
      $file = "../".($xml->name)."/".($xml->name);
      $path = dirname($path);
      $file = "/".($xml->name)."/".($xml->name);
    }

    $pf = "$path/$file.kml";
@@ -260,7 +262,7 @@ function parse_kml($path,$file){
        }

    }else{
        echo "File not found, you suck!\n";
        //echo "File not found ".$pf."\n";
        $res = <<<TEXT
<Camera>
    <longitude>-111.9328843</longitude>