Fix Geo File Path

This commit is contained in:
2020-02-02 20:08:25 +01:00
parent 31e9ca3856
commit b2904b70a0
2 changed files with 3 additions and 5 deletions

View File

@@ -87,10 +87,6 @@ class Project extends PhpObject {
return $this->updateField('timezone', $sTimeZone);
}
public function getGeoFile() {
return $this->asGeo['file'];
}
public function getFeedIds() {
return $this->oDb->selectColumn(
Feed::FEED_TABLE,
@@ -146,7 +142,7 @@ class Project extends PhpObject {
$this->asActive = array('from'=>$asProject['active_from'], 'to'=>$asProject['active_to']);
$this->sCodeName = $asProject['codename'];
$this->sName = $asProject['name'];
$this->asGeo = array('file'=>$asProject['geofile'], 'timezone'=>$asProject['timezone']);
$this->asGeo = array('geofile'=>$asProject['geofilepath'], 'gpxfile'=>$asProject['gpxfilepath'], 'timezone'=>$asProject['timezone']);
}
else $this->addError('Error while setting project: no project ID');
}

View File

@@ -186,6 +186,8 @@ class Spot extends Main
private function getSpotMessages()
{
$asMessages = array();
//Get messages from all feeds belonging to the project
$asFeeds = $this->oProject->getFeedIds();
foreach($asFeeds as $iFeedId) {