mirror of
https://github.com/friendica/friendica
synced 2025-04-27 00:30:10 +00:00
Revert "Merge pull request #13463 from MrPetovan/task/imagegrid-improvement"
This reverts commitdd7bea4bd1
, reversing changes made toce16cd12ec
.
This commit is contained in:
parent
dd7bea4bd1
commit
56fb9be0f7
11 changed files with 46 additions and 147 deletions
|
@ -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']) . '%';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue