fix picture assignment to spot message
This commit is contained in:
@@ -230,7 +230,7 @@ class Spot extends Main
|
|||||||
if($iIndex == 0) $iMsgIndex = $iIndex;
|
if($iIndex == 0) $iMsgIndex = $iIndex;
|
||||||
elseif($iIndex > $iMaxIndex) $iMsgIndex = $iMaxIndex;
|
elseif($iIndex > $iMaxIndex) $iMsgIndex = $iMaxIndex;
|
||||||
else {
|
else {
|
||||||
$iHalfWayPoint = ($asMessages[$iIndex]['unix_time'] - $asMessages[$iIndex - 1]['unix_time'])/2;
|
$iHalfWayPoint = ($asMessages[$iIndex - 1]['unix_time'] + $asMessages[$iIndex]['unix_time'])/2;
|
||||||
$iMsgIndex = ($asPic['unix_time'] >= $iHalfWayPoint)?$iIndex:($iIndex - 1);
|
$iMsgIndex = ($asPic['unix_time'] >= $iHalfWayPoint)?$iIndex:($iIndex - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -405,7 +405,7 @@ class Spot extends Main
|
|||||||
public function upload()
|
public function upload()
|
||||||
{
|
{
|
||||||
$this->oClassManagement->incClass('uploader', true);
|
$this->oClassManagement->incClass('uploader', true);
|
||||||
$oUploader = new Uploader($this->oPicture);
|
new Uploader($this->oPicture);
|
||||||
|
|
||||||
return self::getJsonResult(true, '');
|
return self::getJsonResult(true, '');
|
||||||
}
|
}
|
||||||
|
|||||||
1
todo
1
todo
@@ -6,5 +6,4 @@ To Do List
|
|||||||
- Replace all images with FA icons
|
- Replace all images with FA icons
|
||||||
- on hover sur message : open popup on map (check zoom)
|
- on hover sur message : open popup on map (check zoom)
|
||||||
- on hover on relative time: display absolute time
|
- on hover on relative time: display absolute time
|
||||||
- bug on picture assignment to markers (routeburn) - related to TZ issue
|
|
||||||
- Replace 'heure française' with actual project timezone
|
- Replace 'heure française' with actual project timezone
|
||||||
Reference in New Issue
Block a user