Skip to content

Commit

Permalink
Fix bug with shortened YouTube links
Browse files Browse the repository at this point in the history
  • Loading branch information
hinderson committed May 8, 2017
1 parent 2ba54fb commit 996fd63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion variables/VideoPosterVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ private function parseVimeoURL($url)

public function getPoster($url)
{
if (strpos($url, 'youtube') > 0) {
$videoPoster = null;
if (strpos($url, 'youtu') > 0) {
$videoPoster = $this->parseYouTubeURL($url);
} elseif (strpos($url, 'vimeo') > 0) {
$videoPoster = $this->parseVimeoURL($url);
Expand Down

0 comments on commit 996fd63

Please sign in to comment.