Skip to content

Commit

Permalink
Ticket #587
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Oct 11, 2017
1 parent e1c823d commit 9d8e9b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions inc/classes/BxDolFilesModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";

Expand Down
3 changes: 2 additions & 1 deletion modules/boonex/sounds/classes/BxSoundsSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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'],
Expand Down
7 changes: 4 additions & 3 deletions modules/boonex/videos/classes/BxVideosSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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'],
Expand Down

0 comments on commit 9d8e9b1

Please sign in to comment.