From 9c8ed8d6537cee1e6e5ebf57372acc2e37f96a87 Mon Sep 17 00:00:00 2001 From: vbracco Date: Thu, 23 Oct 2008 20:24:49 +0000 Subject: [PATCH] fixing youtube videos with default url --- classes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/functions.php b/classes/functions.php index 4b49a23..60de16f 100644 --- a/classes/functions.php +++ b/classes/functions.php @@ -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;