diff --git a/main/newscorm/blank.php b/main/newscorm/blank.php index 0db2e1ff1d..a3f84edaf3 100644 --- a/main/newscorm/blank.php +++ b/main/newscorm/blank.php @@ -7,8 +7,31 @@ /** * Script */ + +if(isset($_GET['error']) && $_GET['error']=='document_deleted'){ + $language_file[] = "learnpath"; + require('../inc/global.inc.php'); +} + ?> + + + + + + + \ No newline at end of file diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 8953745f26..e2638261d3 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -2674,6 +2674,11 @@ class learnpath { }else{ require_once('resourcelinker.inc.php'); $file = rl_get_resource_link_for_learnpath(api_get_course_id(),$this->get_id(),$item_id); + $tmp_array=explode("/",$file); + $document_name=$tmp_array[count($tmp_array)-1]; + if(strpos($document_name,'_DELETED_')){ + $file = 'blank.php?error=document_deleted'; + } } break; case 2: