fix the bug that once the a content is deleted from the lesson via "delete content...
[acontent.git] / docs / home / classes / ContentUtility.class.php
index 7e7f24c..da3f986 100644 (file)
@@ -618,7 +618,7 @@ class ContentUtility {
                                'home/editor/edit_content.php?pid='.$contentManager->_menu_info[$content_row['content_id']]['content_parent_id'].SEP.'_course_id='.$_course_id,\r
                          'icon' => $_base_href . 'images/add_sibling_page.gif');\r
                        \r
-                       if ($content_row['content_type'] == CONTENT_TYPE_CONTENT) {\r
+                       if ($content_row['content_type'] == CONTENT_TYPE_CONTENT || $content_row['content_type'] == CONTENT_TYPE_WEBLINK) {\r
                                $tool_shortcuts[] = array(\r
                                  'title' => _AT('delete_this_page'),   \r
                                  'url' => $_base_href . 'home/editor/delete_content.php?_cid='.$content_row['content_id'],\r