Parcourir la source

fixing youtube videos with default url

vbracco il y a 15 ans
Parent
révision
9c8ed8d653
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      classes/functions.php

+ 1 - 1
classes/functions.php Voir le fichier

@@ -135,7 +135,7 @@ if(!defined('entry') || !entry) die('Not a valid page');
135 135
 	
136 136
 	function isYoutubeVideo($videoUrl) {
137 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 139
 			return true;
140 140
 		else
141 141
 			return false;