fixed: on_delete_video

This commit is contained in:
fwhite 2010-03-30 06:26:18 +00:00
parent e39674d769
commit a5d568dd36
2 changed files with 2 additions and 14 deletions

View file

@ -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

View file

@ -265,8 +265,8 @@
*/
function register_action_remove_video($func)
{
global $cbvid;
$cbvid->video_delete_functions[] = $func;
global $Cbucket;
$Cbucket->on_delete_video[] = $func;
}
/**