diff --git a/upload/includes/classes/video.class.php b/upload/includes/classes/video.class.php index 6a76489b..6004aee3 100644 --- a/upload/includes/classes/video.class.php +++ b/upload/includes/classes/video.class.php @@ -303,18 +303,6 @@ class CBvideo extends CBCategory if($this->is_video_owner($vid,userid()) || has_access('admin_access',TRUE)) { - //list of functions to perform while deleting a video - $del_vid_funcs = $this->video_delete_functions; - if(is_array($del_vid_funcs)) - { - foreach($del_vid_funcs as $func) - { - if(function_exists($func)) - { - $func($vdetails); - } - } - } //Finally Removing Database entry of video $db->execute("DELETE FROM ".tbl("video")." WHERE videoid='$vid'"); //Removing Video From Playlist diff --git a/upload/includes/plugin.functions.php b/upload/includes/plugin.functions.php index 75f7066e..21e46f87 100644 --- a/upload/includes/plugin.functions.php +++ b/upload/includes/plugin.functions.php @@ -265,8 +265,8 @@ */ function register_action_remove_video($func) { - global $cbvid; - $cbvid->video_delete_functions[] = $func; + global $Cbucket; + $Cbucket->on_delete_video[] = $func; } /**