فهرست منبع

Fixes DT#5152 requires testing

Julio Montoya 15 سال پیش
والد
کامیت
780f1ce164
3فایلهای تغییر یافته به همراه10 افزوده شده و 1 حذف شده
  1. 3 0
      main/course_home/2column.php
  2. 3 1
      main/course_home/activity.php
  3. 4 0
      main/course_home/btf_functions.php

+ 3 - 0
main/course_home/2column.php

@@ -136,6 +136,9 @@ function show_tools($course_tool_category)
 		$lnk = array();
 		foreach ($all_tools_list as $toolsRow)
 		{
+			if (api_get_session_id()!=0 && in_array($toolsRow['name'],array('course_maintenance','course_setting'))) {
+				continue;
+			}
 
 			if (!($i%2))
 			{

+ 3 - 1
main/course_home/activity.php

@@ -170,7 +170,9 @@ function show_tools_category($course_tool_category)
 	{
 		foreach($tmp_all_tools_list as $toolsRow)
 		{
-
+			if (api_get_session_id()!=0 && in_array($toolsRow['name'],array('course_maintenance','course_setting'))) {
+				continue;
+			}
 			if($toolsRow['image'] == 'blog.gif')
 			{
 				// Init

+ 4 - 0
main/course_home/btf_functions.php

@@ -141,6 +141,10 @@ function showtools2($cat)
 
 	foreach ($toolsRow_all as $toolsRow)
 	{
+		if (api_get_session_id()!=0 && in_array($toolsRow['name'],array('course_maintenance','course_setting'))) {
+				continue;
+		}
+		
 		$cell_content = '';
 		// the name of the tool
 		$tool_name = ($toolsRow['name_translated'] != "" ? $toolsRow['name_translated'] : htmlspecialchars($toolsRow['name'],ENT_QUOTES,$charset)); // RH: added htmlspecialchars