Browse Source

fixing youtube videos with default url

vbracco 16 years ago
parent
commit
9c8ed8d653
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/functions.php

+ 1 - 1
classes/functions.php View File

135
 	
135
 	
136
 	function isYoutubeVideo($videoUrl) {
136
 	function isYoutubeVideo($videoUrl) {
137
 		$url = explode("?", $videoUrl);
137
 		$url = explode("?", $videoUrl);
138
-		if (beginsWith($url[0], "http://") && endsWith($url[0], ".youtube.com/watch"))
138
+		if((beginsWith($url[0], "http://") && endsWith($url[0], ".youtube.com/watch")) || beginsWith($url[0], "http://youtube.com/watch"))
139
 			return true;
139
 			return true;
140
 		else
140
 		else
141
 			return false;
141
 			return false;