diff --git a/inc/classes/BxDolFilesModule.php b/inc/classes/BxDolFilesModule.php index 7ebb05d6..6d1d4e1f 100644 --- a/inc/classes/BxDolFilesModule.php +++ b/inc/classes/BxDolFilesModule.php @@ -1693,9 +1693,6 @@ function getWallPost($aEvent, $sIcon = 'save', $aParams = array()) if($iOwner == 0 && $bItems && !empty($aItems[0]['owner'])) $iOwner = (int)$aItems[0]['owner']; - if($iDate == 0 && $bItems && !empty($aItems[0]['date'])) - $iDate = (int)$aItems[0]['date']; - if($iOwner == 0 || !$bItems) return ""; diff --git a/modules/boonex/sounds/classes/BxSoundsSearch.php b/modules/boonex/sounds/classes/BxSoundsSearch.php index 304ace7a..5492b784 100644 --- a/modules/boonex/sounds/classes/BxSoundsSearch.php +++ b/modules/boonex/sounds/classes/BxSoundsSearch.php @@ -161,7 +161,7 @@ function serviceGetEntry($iId, $sType) $sFilePath = $this->getImgPath($iId, $sType); $sUrl = $this->getCurrentUrl('file', $iId, $aImageInfo['uri']); return array( - 'id' => $aImageInfo['id'], + 'id' => $aImageInfo['id'], 'file' => $sFileName, 'file_path' => $sFilePath, 'title' => $aImageInfo['title'], @@ -170,6 +170,7 @@ function serviceGetEntry($iId, $sType) 'width' => (int)$this->oModule->_oConfig->getGlParam($sType . '_width') + 2 * 2, 'height' => (int)$this->oModule->_oConfig->getGlParam($sType . '_height') + 2 * 2, 'url' => $sUrl, + 'date' => $aImageInfo['date'], 'rate' => $aImageInfo['rate'], 'rate_count' => $aImageInfo['rate_count'], 'comments_count' => $aImageInfo['comments_count'], diff --git a/modules/boonex/videos/classes/BxVideosSearch.php b/modules/boonex/videos/classes/BxVideosSearch.php index e6b3c205..7fec125d 100644 --- a/modules/boonex/videos/classes/BxVideosSearch.php +++ b/modules/boonex/videos/classes/BxVideosSearch.php @@ -130,7 +130,7 @@ function serviceGetEntry($iId, $sType = 'browse') } return array( - 'id' => $aImageInfo['id'], + 'id' => $aImageInfo['id'], 'file' => $sFileName, 'file_path' => $sFilePath, 'title' => $aImageInfo['title'], @@ -141,8 +141,9 @@ function serviceGetEntry($iId, $sType = 'browse') 'url' => $this->getCurrentUrl('file', $iId, $aImageInfo['uri']), 'video' => $aImageInfo['Video'], 'source' => $aImageInfo['Source'], - 'duration' => $aImageInfo['Time'], - 'duration_f' => _format_time(round(($aImageInfo['Time'])/1000)), + 'duration' => $aImageInfo['Time'], + 'duration_f' => _format_time(round(($aImageInfo['Time'])/1000)), + 'date' => $aImageInfo['date'], 'rate' => $aImageInfo['rate'], 'rate_count' => $aImageInfo['rate_count'], 'comments_count' => $aImageInfo['comments_count'],