fixing youtube videos with default url

master
vbracco 2008-10-23 20:24:49 +00:00
parent 4772809453
commit 9c8ed8d653
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ if(!defined('entry') || !entry) die('Not a valid page');
function isYoutubeVideo($videoUrl) {
$url = explode("?", $videoUrl);
if (beginsWith($url[0], "http://") && endsWith($url[0], ".youtube.com/watch"))
if((beginsWith($url[0], "http://") && endsWith($url[0], ".youtube.com/watch")) || beginsWith($url[0], "http://youtube.com/watch"))
return true;
else
return false;