diff --git a/main/course_home/2column.php b/main/course_home/2column.php index 7570c6d77e..6af61c6f86 100644 --- a/main/course_home/2column.php +++ b/main/course_home/2column.php @@ -167,7 +167,7 @@ function show_tools($course_tool_category) unset($lnk); if (api_is_allowed_to_edit()) { - if ($toolsRow["visibility"] == '1' && !strpos($toolsRow['link'],'lp_controller')) + if ($toolsRow["visibility"] == '1') { $link['name'] = ''.get_lang('; $link['cmd'] = "hide=yes"; diff --git a/main/course_home/activity.php b/main/course_home/activity.php index 068f6bf476..f90f478983 100644 --- a/main/course_home/activity.php +++ b/main/course_home/activity.php @@ -216,7 +216,7 @@ function show_tools_category($course_tool_category) echo '' . "\n"; if($is_allowed_to_edit) { - if($toolsRow['visibility'] == '1' && $toolsRow['admin'] !='1' && !strpos($toolsRow['link'],'lp_controller.php')) + if($toolsRow['visibility'] == '1' && $toolsRow['admin'] !='1') { $link['name'] = ''.get_lang(';