Fix update email spot position image link
This commit is contained in:
@@ -140,7 +140,7 @@ class Feed extends PhpObject {
|
|||||||
public function getLastMessageId($asConstraints=array()) {
|
public function getLastMessageId($asConstraints=array()) {
|
||||||
|
|
||||||
$asMessages = $this->getMessages($asConstraints);
|
$asMessages = $this->getMessages($asConstraints);
|
||||||
return end($asMessages)[Db::getId(self::MSG_TABLE)];
|
return end($asMessages)[Db::getId(self::MSG_TABLE)] ?? 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkUpdateFeed($sProjectMode) {
|
public function checkUpdateFeed($sProjectMode) {
|
||||||
@@ -151,8 +151,8 @@ class Feed extends PhpObject {
|
|||||||
$oLastUpdate = new \DateTime('@'.$this->iLastUpdate);
|
$oLastUpdate = new \DateTime('@'.$this->iLastUpdate);
|
||||||
$oNow = new \DateTime('now');
|
$oNow = new \DateTime('now');
|
||||||
$iSecDiff = $oNow->getTimestamp() - $oLastUpdate->getTimestamp();
|
$iSecDiff = $oNow->getTimestamp() - $oLastUpdate->getTimestamp();
|
||||||
|
|
||||||
if($iSecDiff > self::FEED_MAX_REFRESH && !Settings::DEBUG) $bNewMsg = $this->updateFeed();
|
if($iSecDiff > self::FEED_MAX_REFRESH) $bNewMsg = $this->updateFeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $bNewMsg;
|
return $bNewMsg;
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class Map extends PhpObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getMapUrl($sCodeName, $asParams) {
|
public function getMapUrl($sCodeName, $asParams) {
|
||||||
|
$asParams['token'] = $this->asMaps[$sCodeName]['token'];
|
||||||
return self::populateParams($this->asMaps[$sCodeName]['pattern'], $asParams);
|
return self::populateParams($this->asMaps[$sCodeName]['pattern'], $asParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user