diff --git a/upload/includes/classes/video.class.php b/upload/includes/classes/video.class.php index b2fefe65..227e98f2 100644 --- a/upload/includes/classes/video.class.php +++ b/upload/includes/classes/video.class.php @@ -1302,7 +1302,7 @@ class CBvideo extends CBCategory if($type=='iframe') { $embed_code = ''; } diff --git a/upload/includes/functions_video.php b/upload/includes/functions_video.php index ec48e138..cc6b8b97 100644 --- a/upload/includes/functions_video.php +++ b/upload/includes/functions_video.php @@ -1058,7 +1058,7 @@ } } - increment_views_new($vdo['videoid'],'video'); + increment_views_new($vdo['videokey'],'video'); if(userid()) $userquery->increment_watched_vides(userid()); diff --git a/upload/player/embed_player.php b/upload/player/embed_player.php index ecfcf5ac..612e17f9 100644 --- a/upload/player/embed_player.php +++ b/upload/player/embed_player.php @@ -15,11 +15,11 @@ define("THIS_PAGE","watch_video"); include("../includes/config.inc.php"); - -$vid = $_GET['vid']; -//gettin video details -$vdetails = get_video_details($vid); -increment_views_new($vid, 'video'); + +$vkey = $_GET['vid']; +//gettin video details by key +$vdetails = $cbvid->get_video($vkey); +increment_views_new($vkey, 'video'); $width = @$_GET['width']; $height = @$_GET['height']; $autoplay = @$_GET['autoplay'];