Commit 005bea96cfc09de5768ba8ba1ca64e30c2fbbc99

Authored by Elena.Budnik
1 parent 7a88f1b3

corr in orbInKm

Showing 2 changed files with 3 additions and 2 deletions   Show diff stats
php/config.php
... ... @@ -88,6 +88,7 @@ define('SpecialSettingsDir',DATAPATH.'SpecialSettings/');
88 88  
89 89 // General Info files
90 90 define('orbitsXml',LocalData.'Orbites.xml');
  91 +define('orbitsAllXml',LocalData.'OrbitsAll.xml');
91 92 define('FeedbackXml', DATAPATH.'Feedback/Feedback.xml');
92 93 define('specialGrpsXml',SpecialSettingsDir.'Groups.xml');
93 94 define('specialSettingsXml',SpecialSettingsDir.'Settings.xml');
... ...
php/makeOrbitsInKm.php
... ... @@ -88,7 +88,7 @@
88 88 $newXML->addChild('output');
89 89 $newXML->asXML($new_param_file);
90 90  
91   - $newOrbit = $domKm->createElement('orbite');
  91 + $newOrbit = $domKm->createElement('orbites');
92 92 $newOrbit->setAttribute('xml:id', $newId);
93 93 $newOrbit->setAttribute('coordinates_system', $paramXml->info->coordinates_system);
94 94 $newOrbit->setAttribute('units','km');
... ... @@ -108,7 +108,7 @@
108 108 unlink(LocalData.'OrbitsAll.xml');
109 109  
110 110 // Merge internal orbits and open orbits
111   - $orbitsInternal = $rootKm->getElementsByTagName('orbite');
  111 + $orbitsInternal = $rootKm->getElementsByTagName('orbites');
112 112 foreach ($orbitsInternal as $orbitInternal)
113 113 {
114 114 $dom->documentElement->appendChild($dom->importNode($orbitInternal));
... ...