Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions third_party/antenna/pi.antenna.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ public function Antenna()
$wmode_param = (ee()->TMPL->fetch_param('wmode')) ? "&wmode=" . ee()->TMPL->fetch_param('wmode') : "";

// Correct for a bug in YouTube response if only maxheight is set and the video is over 612px wide
if (empty($max_height)) $max_height = "&maxheight=" . ee()->TMPL->fetch_param('max_width');

if (((strpos($video_url, "youtube.com/") !== FALSE OR strpos($video_url, "youtu.be/") !== FALSE)) AND (empty($max_height))) {
$max_height = "&maxheight=" . ee()->TMPL->fetch_param('max_width');
}
// Cache can be disabled by setting 0 as the cache_minutes param
if (ee()->TMPL->fetch_param('cache_minutes') !== FALSE && is_numeric(ee()->TMPL->fetch_param('cache_minutes'))) {
$this->refresh_cache = ee()->TMPL->fetch_param('cache_minutes');
Expand Down