fixing youtube videos with default url
parent
4772809453
commit
9c8ed8d653
|
|
@ -135,7 +135,7 @@ if(!defined('entry') || !entry) die('Not a valid page');
|
||||||
|
|
||||||
function isYoutubeVideo($videoUrl) {
|
function isYoutubeVideo($videoUrl) {
|
||||||
$url = explode("?", $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;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue