Fix Geo File Path
This commit is contained in:
@@ -87,10 +87,6 @@ class Project extends PhpObject {
|
|||||||
return $this->updateField('timezone', $sTimeZone);
|
return $this->updateField('timezone', $sTimeZone);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getGeoFile() {
|
|
||||||
return $this->asGeo['file'];
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getFeedIds() {
|
public function getFeedIds() {
|
||||||
return $this->oDb->selectColumn(
|
return $this->oDb->selectColumn(
|
||||||
Feed::FEED_TABLE,
|
Feed::FEED_TABLE,
|
||||||
@@ -146,7 +142,7 @@ class Project extends PhpObject {
|
|||||||
$this->asActive = array('from'=>$asProject['active_from'], 'to'=>$asProject['active_to']);
|
$this->asActive = array('from'=>$asProject['active_from'], 'to'=>$asProject['active_to']);
|
||||||
$this->sCodeName = $asProject['codename'];
|
$this->sCodeName = $asProject['codename'];
|
||||||
$this->sName = $asProject['name'];
|
$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');
|
else $this->addError('Error while setting project: no project ID');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -186,6 +186,8 @@ class Spot extends Main
|
|||||||
|
|
||||||
private function getSpotMessages()
|
private function getSpotMessages()
|
||||||
{
|
{
|
||||||
|
$asMessages = array();
|
||||||
|
|
||||||
//Get messages from all feeds belonging to the project
|
//Get messages from all feeds belonging to the project
|
||||||
$asFeeds = $this->oProject->getFeedIds();
|
$asFeeds = $this->oProject->getFeedIds();
|
||||||
foreach($asFeeds as $iFeedId) {
|
foreach($asFeeds as $iFeedId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user