[RSS Feed/News] Changing behaviour of album thumbnail generation requires overwriting whole method

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Method XFMG\Service\Album\ThumbnailGenerator::createAlbumThumbnail()[/code] does configure a finder with somewhat hardcoded conditions and sorting: [php] $media = $this->finder('XFMG:MediaItem') ->where('album_id', $album->album_id) ->where('thumbnail_date', '>', 0) ->where('media_state', 'visible') ->orderByDate() ->fetch(4); [/php] I we want to change this behaviour (for example the ordering) it seems to be necessary to overwrite the whole method, effectively...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom