Revert "Merge pull request #13463 from MrPetovan/task/imagegrid-improvement"

This reverts commit dd7bea4bd1, reversing
changes made to ce16cd12ec.
This commit is contained in:
Hypolite Petovan 2023-09-24 16:24:28 -04:00
parent dd7bea4bd1
commit 56fb9be0f7
11 changed files with 46 additions and 147 deletions

View file

@ -1169,15 +1169,4 @@ class Media
}
return $url . $id;
}
/**
* Computes the allocated height value used in the content/image.tpl template based on a post-media record
*
* @param array $media A post-media record array
* @return string
*/
public static function getAllocatedHeightByMedia(array $media): string
{
return (100 * $media['height'] / $media['width']) . '%';
}
}