Skip to content

Commit

Permalink
Remove FileSize lookup on a load of page.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcordis committed Jan 23, 2024
1 parent bbcc6c5 commit 070d0ce
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions site/helpers/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -838,12 +838,6 @@ public function getFluidFilesize($media, $params)

$file_size = (int) $media->params->get('size', '0');

if ($file_size === 0)
{
$file_size = JBSMHelper::getRemoteFileSize(JBSMHelper::MediaBuildUrl($media->sparams->get('path'), $params->get('filename'), $params, true));
JBSMHelper::SetFilesize($media->id, $file_size);
}

if ($file_size !== 0)
{
switch ($file_size)
Expand Down

0 comments on commit 070d0ce

Please sign in to comment.